Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Temporal] Made the seconds part of Instant.Str use a leading 0 like …
  • Loading branch information
Kodi Arfer authored and Kodi Arfer committed Dec 19, 2010
1 parent a82071b commit 96d7e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Temporal.pm
Expand Up @@ -130,7 +130,7 @@ sub default-formatter(::DateTime $dt, Bool :$subseconds) {
sprintf '%04d-%02d-%02dT%02d:%02d:%s%s',
$dt.year, $dt.month, $dt.day, $dt.hour, $dt.minute,
$subseconds
?? $dt.second.fmt('%02f')
?? $dt.second.fmt('%09.6f')
!! $dt.whole-second.fmt('%02d'),
do $o
?? sprintf '%s%02d%02d',
Expand Down

0 comments on commit 96d7e0d

Please sign in to comment.