Date manipulation: Difference between revisions
Content added Content deleted
(Add Factor example) |
m (→{{header|Factor}}: comment a word definition) |
||
Line 884: | Line 884: | ||
IN: rosetta-code.date-manipulation |
IN: rosetta-code.date-manipulation |
||
! e.g. "7:30pm" -> 19 30 |
|||
: parse-hm ( str -- hours minutes ) |
: parse-hm ( str -- hours minutes ) |
||
":" split first2 [ digit? ] partition |
":" split first2 [ digit? ] partition |