Skip to main content

UtcTime

UtcTime gets current time information in a UTC format for the server or client. When UtcTime is instantiated, that's when the Date is captured.

Instance Methods

Method NameReturn TypeDescription
LoadvoidLoads a specific time
GetDayOfWeekstringReturns the current day in the week
GetMonthNamestringReturns the current month name
GetAMPMstringReturns if it is AM or PM as a string
GetMillisecondsintReturns the Milliseconds of the current Time
GetSecondsintReturns the seconds of the current Time
GetMinutesintReturns the minutes of the current Time
GetHoursintReturns the hours of the current Time
GetDayintReturns the day in the month of the current Time
GetMonthintReturns the month of the current Time
GetYearintReturns the year of the current Time