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
Link copied to clipboard
The dayOfMonth part
Link copied to clipboard
The day of week part as Int : 0: Sunday, 1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6: Saturday
Link copied to clipboard
The milliseconds part
Link copied to clipboard
Number of milliseconds since UNIX EPOCH
Link copied to clipboard
Number of milliseconds since UNIX EPOCH as Double
Link copied to clipboard
Number of milliseconds since UNIX EPOCH as Long
Link copied to clipboard
Number of milliseconds since the 00:00:00 UTC, Monday, 1 January 1