summaryrefslogtreecommitdiff
path: root/doc/examples/time2.m4
blob: 021cb23cf9a6cb975b6a430107712fc8f077fac3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
dnl Copyright (C) 2006, 2010, 2013-2014 Free Software Foundation, Inc.
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.
`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)