maint: bump copyright year
[m4.git] / doc / examples / time2.m4
blob36840c4fa72ffd1e0a6622dcf0679cd687050382
1 dnl Copyright (C) 2006, 2010, 2013-2014, 2017 Free Software Foundation,
2 dnl Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it
5 dnl with or without modifications, as long as this notice is preserved.
6 `currenttime' = currenttime
7 `ctime'       = ctime != ctime(eval(currenttime+60*60*24))
8 gmtime      = gmtime(currenttime)
9 localtime   = localtime(currenttime)
10 define(`q', `$1,$2,$3,$4,$5,$6,$9')dnl
12 currenttime
13 eval(currenttime+60*60*24)
14 localtime(eval(currenttime+60*60*24))
15 q(localtime(eval(currenttime+60*60*24)))
16 mktime      = mktime(q(localtime(eval(currenttime+60*60*24))))
18 %A %B %d, %Y  = strftime(`%A %B %d, %Y', currenttime)
19 %X on %x      = strftime(`%X on %x', currenttime)