Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

end_of_day does not handle leap seconds #65

Open
mlew opened this issue Aug 8, 2015 · 0 comments
Open

end_of_day does not handle leap seconds #65

mlew opened this issue Aug 8, 2015 · 0 comments

Comments

@mlew
Copy link
Collaborator

mlew commented Aug 8, 2015

Leap seconds occaisonally get added to days to account for the Earth's slowing rotation. The end_of_day function should be aware of days that contain leap seconds, and return the proper value accordingly.

>>> d = Delorean(datetime(2015, 6, 30), timezone='US/Pacific')
>>> d.end_of_day()
datetime.datetime(2015, 6, 30, 23, 59, 60, 999999, tzinfo=<DstTzInfo 'US/Pacific' PDT-1 day, 17:00:00 DST>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant