summaryrefslogtreecommitdiff
path: root/lib/date
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-09-14 14:52:38 -0700
committerOri Bernstein <ori@eigenstate.org>2015-09-14 14:52:38 -0700
commit7e12266a87ef6ce06669e7da5091b6c70c73f177 (patch)
tree78615e23ca18c6745418917aabbde8f361a1cb97 /lib/date
parent3ee9ef9b185e6f7b7af5d5c6fc3d330cb4a51cd8 (diff)
downloadmc-7e12266a87ef6ce06669e7da5091b6c70c73f177.tar.gz
Default to std.Datetimefmt
Diffstat (limited to 'lib/date')
-rw-r--r--lib/date/fmt.myr1
-rw-r--r--lib/date/test/ftime-test.myr2
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/date/fmt.myr b/lib/date/fmt.myr
index cfcc975..3297076 100644
--- a/lib/date/fmt.myr
+++ b/lib/date/fmt.myr
@@ -27,6 +27,7 @@ const sbfmt = {sb, ap, opts
var fmt
d = std.vanext(ap)
+ fmt = Datetimefmt;
for o in opts
match o
| ("d", ""): fmt = Datefmt
diff --git a/lib/date/test/ftime-test.myr b/lib/date/test/ftime-test.myr
index 919cd35..c00b5d2 100644
--- a/lib/date/test/ftime-test.myr
+++ b/lib/date/test/ftime-test.myr
@@ -8,8 +8,6 @@ const main = {
/*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)
}