calendar.format: use format-float more.

db4
John Benediktsson 2014-11-28 21:27:30 -08:00
parent 08ec579f87
commit 3d86fba48b
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ M: timestamp year. ( timestamp -- )
! Should be enough for anyone, allows to not do a fancy
! algorithm to detect infinite decimals (e.g 1/3)
: ss.SSSSSS ( timestamp -- )
second>> >float "%.6f" format-float 9 CHAR: 0 pad-head write ;
second>> >float "%09.6f" format-float write ;
: (timestamp>rfc3339) ( timestamp -- )
{