Skip to main content

Time

Time gets current time information for the server or client. When Time is instantiated, that's when the Date is captured.

Instance Methods

Method NameReturn TypeDescription
LoadvoidLoads a specific time
Is24HourClockboolChecks if the machine is using a 24hr clock
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