DateTime
dt = DateTime.utc_now()
dt = ~U[2020-05-29 02:15:00Z] #Only UTC Timezone
# Change to first of month
%{dt | day: 1, hour: 0, minute: 0, second: 0, microsecond: {0, 0}}
dt |> DateTime.add(60, :second) #Expected :second, :millisecond, :microsecond, :nanosecondNative DateTime
naive = ~N[2000-01-01 23:00:07]
naive.year #2000
naive.second #7
dt.year #2020
NaiveDateTime.add(~N[2014-10-02 00:29:10.021], 21, :second) UNIX
Comparison
Last updated