Add more date builtins

This commit is contained in:
Nicolas Williams committed 2015-03-09 11:27:58 -05:00
1 parent 3e8183fcd5
commit ccfba00178
4 files changed
+234 -48

No files matched your search

+11 -3
View File
@@ -1140,9 +1140,17 @@ bsearch(4)
[1,2,3]
-4
[strptime("%Y-%m-%d %H:%M:%SZ")|(.,mktime)]
"2015-03-05 23:51:47Z"
[[2015,2,5,23,51,47,4,63],1425621107]
[strptime("%Y-%m-%dT%H:%M:%SZ")|(.,mktime)]
"2015-03-05T23:51:47Z"
[[2015,2,5,23,51,47,4,63],1425599507]
strftime("%Y-%m-%dT%H:%M:%SZ")
[2015,2,5,23,51,47,4,63]
"2015-03-05T23:51:47Z"
gmtime
1425599507
[2015,2,5,23,51,47,4,63]
# module system
import "a" as foo; import "b" as bar; def fooa: foo::a; [fooa, bar::a, bar::b, foo::a]