Make gnulib a git submodule.
[m4.git] / modules / time.m4
blob2db366de6a7ffa711056c5b539c574b849665220
1 dnl Copyright (C) 2006 Free Software Foundation
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it
4 dnl with or without modifications, as long as this notice is preserved.
5 load(`time')
7 `currenttime' = currenttime
8 `ctime'       = ctime != ctime(eval(currenttime+60*60*24))
9 gmtime      = gmtime(currenttime)
10 localtime   = localtime(currenttime)
11 define(`q', `$1,$2,$3,$4,$5,$6,$9')dnl
13 currenttime
14 eval(currenttime+60*60*24)
15 localtime(eval(currenttime+60*60*24))
16 q(localtime(eval(currenttime+60*60*24)))
17 mktime      = mktime(q(localtime(eval(currenttime+60*60*24))))
19 %A %B %d, %Y  = strftime(`%A %B %d, %Y', currenttime)
20 %X on %x      = strftime(`%X on %x', currenttime)