* Get the epoch milliseconds (milliseconds since 1970-01-01T00:00:00Z).
()
| 914 | * Get the epoch milliseconds (milliseconds since 1970-01-01T00:00:00Z). |
| 915 | */ |
| 916 | public get epochMillis(): number { |
| 917 | const date = new Date( |
| 918 | Date.UTC(this.#year, this.#month - 1, this.#day, this.#hour, this.#minute, this.#second), |
| 919 | ); |
| 920 | // Adjust for timezone offset |
| 921 | const ms = date.getTime() - this.#offsetSeconds * 1000; |
| 922 | return ms + Math.floor(this.#nanosecond / 1_000_000); |
| 923 | } |
| 924 | |
| 925 | public get(property: string): unknown { |
| 926 | switch (property) { |
nothing calls this directly
no outgoing calls
no test coverage detected