summaryrefslogtreecommitdiff
path: root/test/negtime.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-04-13 16:21:22 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-04-13 16:21:22 +0300
commitf156eb53457a9e4e34c1b96f9e54eb130dffd8a3 (patch)
tree793b7346af079f55e1c1d4abd490413218fa1a95 /test/negtime.awk
parent0325b4daf737414c3b811b05c70b897b807a436b (diff)
downloadgawk-f156eb53457a9e4e34c1b96f9e54eb130dffd8a3.tar.gz
Remove fatal error if strftime timestamp < 0.
Diffstat (limited to 'test/negtime.awk')
-rw-r--r--test/negtime.awk4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/negtime.awk b/test/negtime.awk
new file mode 100644
index 00000000..743c6d05
--- /dev/null
+++ b/test/negtime.awk
@@ -0,0 +1,4 @@
+BEGIN {
+then = mktime("1959 12 15 7 00 00")
+print strftime(PROCINFO["strftime"], then)
+}