Open DavidMuller opened 6 years ago
Is this microsecond truncation behavior intentional?
I'm not entirely sure about this. The only reference in the commit history I could find was about simplifying the test suite - which is kinda strange ;)
I've committed #157 to be at least compatible with Python's datetime comparison methods.
However, I'm not entirely sure how to deal with MayaDT.epoch
. The POSIX timestamp / UNIX epoch is usually specified in seconds and not microseconds.
Thanks for the update @timofurrer -- I'll follow along with the discussion in PR #157
This Issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
This Issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
This Issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
The equality operators (e.g.
__eq__
) and other properties (e.g..epoch
) seem to ignore + truncate microseconds:Is this microsecond truncation behavior intentional? It seems to disagree with
datetime's
microsecond treatment, with the__repr__
ofMayaDT
itself, and with otherMayaDT
methods (e.g..datetime()
,. iso8601()
, and of course.microsecond
)Thanks for this package!