DateTime
Represents a Date in UTC (GMT+00) with millisecond precision.
It is internally represented as an inlined double, thus doesn't allocate in any target including JS. It can represent without loss dates between (-(2 ** 52) and (2 ** 52)):
Thu Aug 10 -140744 07:15:45 GMT-0014 (Central European Summer Time)
Wed May 23 144683 18:29:30 GMT+0200 (Central European Summer Time)
Properties
Returns a DateTime of this day with the hour at 23:59:59.999
Returns a DateTime of this day with the hour at 00:00:00
The dayOfMonth part
Returns this date with the local offset of this device. Components might change because of the offset.
The local offset for this date for the timezone of the device
Returns a new local date that will match these components.
The milliseconds part
Number of milliseconds since UNIX EPOCH
Returns this date with a 0 offset. Components are equal.
Number of milliseconds since the 00:00:00 UTC, Monday, 1 January 1
Functions
Returns this date with a local offset. Components might change because of the offset.
Returns a new local date that will match these components but with a different offset.
Converts this date to String using the DateFormat.DEFAULT_FORMAT for representing it