DateTime.pmが1秒ずれる

| コメント(0) | トラックバック(0)



add_duration()を高速化するべく、_handle_offset_modifier()をCで書き直してるのだが1秒ずれる。



t/19leap_second.........NOK 121
# Failed test 'UTC time end of leap second day'
# in t/19leap_second.t at line 750.
# got: '1997-07-01T22:59:58'
# expected: '1997-07-01T22:59:59'
t/19leap_second.........NOK 144
# Failed test 'dt is 2006-01-01T00:00:00'
# in t/19leap_second.t at line 893.
# got: '2005-12-31T23:59:60'
# expected: '2006-01-01T00:00:00'
t/19leap_second.........NOK 146
# Failed test 'dt is 2006-01-01T00:00:00'
# in t/19leap_second.t at line 908.
# got: '2005-12-31T23:59:60'
# expected: '2006-01-01T00:00:00'
# Looks like you failed 3 tests of 148.
t/19leap_second.........dubious
Test returned status 3 (wstat 768, 0x300)
DIED. FAILED tests 121, 144, 146
Failed 3/148 tests, 97.97% okay

Leap second のハンドリングが変なんだろうけど、どこだ一体・・・


Author

Daisuke Maki (a.k.a lestrrat): Perl hacker, Director of Japan Perl Association, YAPC::Asia Tokyo Organizer (2009-2012), Fluent in Japanese, English. Ex-Brazilian (sorta)

#perl #c #ruby #java #mysql #english #japanese #opensource #stf #cooking #scotch #cigar


このエントリーをはてなブックマ
ークに追加

翔泳社よりモダンPerl入門(2010)を出版させていただいております。できれば内容をアップデートしたいので是非皆様・・・現在の在庫処理にお力をお貸しください!><

月別アーカイブ