From 0d2f5539b663fa119e34b4401019f92a4e45b64e Mon Sep 17 00:00:00 2001 From: Eli <100180307+EliTheGingerCat@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:03:58 -0400 Subject: [PATCH] Add Moonwave comments for DateTime properties. (#248) --- types/datetime.luau | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/types/datetime.luau b/types/datetime.luau index 8992dab..04b42aa 100644 --- a/types/datetime.luau +++ b/types/datetime.luau @@ -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, }