This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix DateTime#sec_fraction on ruby 1.9
Previously, it had the 1.8 behavior of returning the fraction of the second as a fraction of the day, even on 1.9. This increases compatibility with the 1.9 stdlib. This also adds a spec for the :sec_fraction entry of Date._parse, though that is the fraction of the second on both 1.8 and 1.9.
- Loading branch information
1 parent
cb182c7
commit 2fa6fb7
Showing
3 changed files
with
34 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters