]> gitweb.factorcode.org Git - factor.git/commitdiff
calendar.format: add hm>timestamp
authorAlexander Iljin <ajsoft@yandex.ru>
Fri, 22 Jul 2016 16:03:40 +0000 (19:03 +0300)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sat, 30 Jul 2016 16:25:30 +0000 (09:25 -0700)
basis/calendar/format/format.factor

index 96d4afcfae70f09982e38a0e58cb703494ed6dfb..e153bb2138fe35cab9b55bf87f8a1ca73b1a477a 100644 (file)
@@ -286,6 +286,9 @@ ERROR: invalid-timestamp-format ;
 : hms>timestamp ( str -- timestamp )
     [ (hms>timestamp) ] with-string-reader ;
 
+: hm>timestamp ( str -- timestamp )
+    ":00" append hms>timestamp ;
+
 : (ymd>timestamp) ( -- timestamp )
     read-ymd <date-gmt> ;