Skip to content

Commit

Permalink
Add Moonwave comments for DateTime properties. (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
EliTheGingerCat authored Oct 16, 2024
1 parent 0f4cac2 commit 0d2f553
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions types/datetime.luau
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,19 @@ export type DateTimeValueArguments = DateTimeValues & OptionalMillisecond
]=]
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 = {
--- Number of seconds passed since the UNIX epoch.
unixTimestamp = (nil :: any) :: number,
--- Number of milliseconds passed since the UNIX epoch.
unixTimestampMillis = (nil :: any) :: number,
}

Expand Down

0 comments on commit 0d2f553

Please sign in to comment.