DateTime():millisecond()
Returns the millisecond of the second of the DateTime
object.
Signature
millisecond(): number
Returns
- Type: number
- The millisecond (0-999).
Examples
local date = DateTime(2024, 1, 15, 14, 30, 45, 123)
local millisecond = date:millisecond()
toast("Millisecond: " .. millisecond) -- Output: 123