ref: 7e12266a87ef6ce06669e7da5091b6c70c73f177
parent: 3ee9ef9b185e6f7b7af5d5c6fc3d330cb4a51cd8
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Sep 14 10:52:38 EDT 2015
Default to std.Datetimefmt
--- a/lib/date/fmt.myr
+++ b/lib/date/fmt.myr
@@ -27,6 +27,7 @@
var fmt
d = std.vanext(ap)
+ fmt = Datetimefmt;
for o in opts
match o
| ("d", ""): fmt = Datefmt
--- a/lib/date/test/ftime-test.myr
+++ b/lib/date/test/ftime-test.myr
@@ -8,8 +8,6 @@
/*Fri 29 Aug 2014 07:47:43 PM UTC*/
d = date.mkinstant(1_409_341_663*1_000_000, "")
- std.put("Formatting d.year={}, d.mon={}, d.day={}, d.h={}, d.m={}, d.s={}\n", \
- d.year, d.mon, d.day, d.h, d.m, d.s)
f = std.bfmt(buf[:], "{D}", d)
eq("2014-8-29 19:47:43 +0000", f)
}