Do not truncate microseconds regardless of precision in DateTime.diff/3
Module
DateTime
11 changes across 10 versions
Changes by version
Add DateTime.shift/2 to shift datetimes with duration and calendar-specific semantics
Add DateTime.before?/2 and DateTime.after?/2
Support precision in DateTime.utc_now/2
Add offset to DateTime.to_iso8601/2 (now to_iso8601/3)
Add DateTime.now!/2 and DateTime.shift_zone!/3
Add DateTime.from_naive/3, DateTime.now/1, and DateTime.shift_zone/3
Take negative years into account in DateTime.from_iso8601/1
Fix negative microsecond result when passing negative Unix epochs to from_unix/2
Fix DateTime.from_iso8601/2 when offset has no colon
Support negative integer in DateTime.from_unix/2