summaryrefslogtreecommitdiff
path: root/modules/time.m4
diff options
context:
space:
mode:
Diffstat (limited to 'modules/time.m4')
-rw-r--r--modules/time.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/time.m4 b/modules/time.m4
new file mode 100644
index 00000000..e87f6bdf
--- /dev/null
+++ b/modules/time.m4
@@ -0,0 +1,16 @@
+loadmodule(`time.so')
+
+`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)