Add Moonwave comments for DateTime properties. (#248)

This commit is contained in:
Eli 2024-10-16 15:03:58 -04:00 committed by GitHub
parent 0f4cac29aa
commit 0d2f5539b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,10 +87,19 @@ export type DateTimeValueArguments = DateTimeValues & OptionalMillisecond
]=] ]=]
export type DateTimeValueReturns = DateTimeValues & Millisecond export type DateTimeValueReturns = DateTimeValues & Millisecond
--[=[
@prop unixTimestamp number
@within DateTime
Number of seconds passed since the UNIX epoch.
]=]
--[=[
@prop unixTimestampMillis number
@within DateTime
Number of milliseconds passed since the UNIX epoch.
]=]
local DateTime = { local DateTime = {
--- Number of seconds passed since the UNIX epoch.
unixTimestamp = (nil :: any) :: number, unixTimestamp = (nil :: any) :: number,
--- Number of milliseconds passed since the UNIX epoch.
unixTimestampMillis = (nil :: any) :: number, unixTimestampMillis = (nil :: any) :: number,
} }