calendar.parser: simplify hms>duration

factor-shell
Alexander Iljin 2017-05-15 00:04:52 +03:00 committed by John Benediktsson
parent 261439fec6
commit 183da87bf4
1 changed files with 1 additions and 2 deletions

View File

@ -169,5 +169,4 @@ MACRO: attempt-all-quots ( quots -- quot )
[ instant read-00 >>hour read-00 >>minute ] with-string-reader ;
: hms>duration ( str -- duration )
[ read-hms ] with-string-reader
instant swap >>second swap >>minute swap >>hour ;
[ 0 0 0 read-hms <duration> ] with-string-reader ;