m4/modules/time.m4
Eric Blake 8a80617bda * configure.ac (AM_INIT_AUTOMAKE): Bump automake requirement.
* AUTHORS: Add copyright.
* ChangeLog: Likewise.
* README: Likewise.  Require automake 1.9b or later.
* HACKING: New file.
* README-alpha: Add copyright.
* THANKS: Likewise.  Update.
* doc/STYLE: Add copyright, and tweak for changed directories.
* modules/README: Add copyright, and tweak for libtool version.
* examples/COPYING: New file.
* examples/WWW/COPYING: Likewise.
* examples/WWW/m4lib/COPYING: Likewise.
* modules/shadow.m4: Add copyright.
* modules/perl.m4: Likewise.
* modules/modtest.m4: Likewise.
* modules/stdlib.m4: Likewise.
* modules/time.m4: Likewise.
* modules/time2.m4: Likewise.
* po/Makevars: Likewise.
* tests/iso8859.m4: Likewise.
* tests/m4.in: Likewise.
* NEWS: Add (C) to copyright.
* TODO: Likewise.
* m4/system_.h: Likewise.
* tests/atlocal.in: Likewise.
* tests/builtins.at: Likewise.
* tests/freeze.at: Likewise.
* tests/generate.awk: Likewise.
* tests/macros.at: Likewise.
* tests/modules.at: L
2007-10-06 06:53:09 -06:00

21 lines
739 B
Plaintext

dnl Copyright (C) 2006 Free Software Foundation
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it
dnl with or without modifications, as long as this notice is preserved.
load(`time')
`currenttime' = currenttime
`ctime' = ctime != ctime(eval(currenttime+60*60*24))
gmtime = gmtime(currenttime)
localtime = localtime(currenttime)
define(`q', `$1,$2,$3,$4,$5,$6,$9')dnl
currenttime
eval(currenttime+60*60*24)
localtime(eval(currenttime+60*60*24))
q(localtime(eval(currenttime+60*60*24)))
mktime = mktime(q(localtime(eval(currenttime+60*60*24))))
%A %B %d, %Y = strftime(`%A %B %d, %Y', currenttime)
%X on %x = strftime(`%X on %x', currenttime)