![]() This doesn't matter in practice, since such leap seconds never happened. It should be noted that, for leap seconds not on the minute boundary, it may print a representation not distinguishable from non-leap seconds. Use NaiveDateTime::checked_add_signed to detect that. The string printed can be readily parsed via the parse method on str. In which case the assumption becomes that there is exactly a single leap second ever. The addition assumes that there is no leap second ever,Įxcept when the NaiveDateTime itself represents a leap second format( "around %l %p on %b %-d")), "around 11 PM on Sep 5") Īn addition of Duration to NaiveDateTime yields another NaiveDateTime.Īs a part of Chrono's leap second handling, Parses a string with the specified format string and returns a new NaiveDateTime.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |