Skip to content

Update DateTime#change to support usec and nsec#28242

Merged
pixeltrix merged 1 commit into
masterfrom
add-fractional-support-to-datetime-change
Mar 2, 2017
Merged

Update DateTime#change to support usec and nsec#28242
pixeltrix merged 1 commit into
masterfrom
add-fractional-support-to-datetime-change

Conversation

@pixeltrix

Copy link
Copy Markdown
Contributor

Adding support for these options now allows us to update the DateTime#end_of methods to match the equivalent Time#end_of methods, e.g:

datetime = DateTime.now.end_of_day
datetime.nsec == 999999999 # => true

Fixes #21424.

Adding support for these options now allows us to update the
`DateTime#end_of` methods to match the equivalent `Time#end_of`
methods, e.g:

    datetime = DateTime.now.end_of_day
    datetime.nsec == 999999999 # => true

Fixes #21424.
@pixeltrix pixeltrix force-pushed the add-fractional-support-to-datetime-change branch from 495bde7 to b5af751 Compare March 2, 2017 06:03
@pixeltrix pixeltrix merged commit a815c7c into master Mar 2, 2017
@pixeltrix pixeltrix deleted the add-fractional-support-to-datetime-change branch March 2, 2017 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants