Date.millis
Date.millis
Function
Reads the millisecond portion of the current Date within the current second.
Syntax
date_value.millis()
Parameters
No parameters.
Return value
| Type | Description |
|---|---|
| Int | Returns the fraction of milliseconds from 0 to 999. |
Code Example
result = date().from_millis(1234).millis() // Output: 234
Notes
- To read full millisecond-level Unix timestamps, use timestamp_millis().