getTime
getTime: (Date) -> numberMilliseconds since the epoch.
Date.new()| Method | Returns | Description |
|---|---|---|
getTime() | number | Milliseconds since the epoch. |
before(Date) | boolean | Whether this is before when. |
after(Date) | boolean | Whether this is after when. |
compareTo(Date) | number | -1, 0 or 1. |
equals(any) | boolean | Whether obj is a Date of the same time. |
toInstant() | Instant | Date#toInstant(). |
toString() | string | EEE MMM dd HH:mm:ss zzz yyyy in the system zone. |
new() | Date | () -> Date: Now. |
new(number) | Date |
| Method | Returns | Description |
|---|---|---|
DateClass.new | Date | () -> Date: Now. |
getTimegetTime: (Date) -> numberMilliseconds since the epoch.
beforebefore: (Date, Date) -> booleanWhether this is before when.
afterafter: (Date, Date) -> booleanWhether this is after when.
compareTocompareTo: (Date, Date) -> number-1, 0 or 1.
equalsequals: (Date, any) -> booleanWhether obj is a Date of the same time.
toInstanttoInstant: (Date) -> InstantDate#toInstant().
toStringtoString: (Date) -> stringEEE MMM dd HH:mm:ss zzz yyyy in the system zone.
newnew: (() -> Date) & ((number) -> Date)() -> Date: Now.
(number) -> Date: date ms after the epoch.