comparison lisp/hm--html-menus/hm--date.el @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children ac2d302a0011
comparison
equal deleted inserted replaced
-1:000000000000 0:376386a54a3c
1 ;;; hm--date.el:
2 ;;; v1.10; 30 Jun 1993
3 ;;; Copyright (C) 1993 Heiko Muenkel
4 ;;; email: muenkel@tnt.uni-hannover.de
5 ;;;
6 ;;; This program is free software; you can redistribute it and/or modify
7 ;;; it under the terms of the GNU General Public License as published by
8 ;;; the Free Software Foundation; either version 1, or (at your option)
9 ;;; any later version.
10 ;;;
11 ;;; This program is distributed in the hope that it will be useful,
12 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;; GNU General Public License for more details.
15 ;;;
16 ;;; You should have received a copy of the GNU General Public License
17 ;;; along with this program; if not, write to the Free Software
18 ;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 ;;;
20 ;;;
21 ;;; Description:
22 ;;;
23 ;;; Defines the function hm--date, which returns the date in the
24 ;;; format "day-month-year" like "30-Jun-1993".
25 ;;;
26 ;;; Installation:
27 ;;;
28 ;;; Put this file in one of your lisp load path directories.
29 ;;; The files which uses this function must only have
30 ;;; following line:
31 ;;; (require 'hm--date)
32 ;;;
33
34
35 (provide 'hm--date)
36
37
38
39 (defun hm--date ()
40 "Returns the current date in the format \"day-month-year\"."
41 (let* ((time-string (current-time-string))
42 (day (substring time-string 8 10))
43 (month (substring time-string 4 7))
44 (year (substring time-string 20 24)))
45 (concat day "-" month "-" year)))