JS-DATE
Arcane Ages defines the standard JavaScript Date class which provides Date and Time functionality. Note that these dates and times refer to real-life dates and time, not mud time.
Class Constructor:
new Date() Creates a new Date set to the current date and time.
new Date( y, m, d, [h,] [m,] [s,] )
Creates a new Date object using year, month, and day numbers.
(Month is a number between 0 (jan) and 11 (dec).) Optionally
you may also provide the hour, minute, and seconds (if these
are not provided they will be initialized to zero).
new Date( str ) Attempts to create a new Date object by parsing the contents
of the string.
Class Methods:
parse( str ) Attempts to create a new Date object by parsing the contents
of the string.
UTC( y, m, d, [h,] [m,] [s,] )
Creates a new date using year, month, day, hours, minutes,
and seconds information given in Universal Time (UTC).
Methods:
getDate() | Gets the day of month. |
getDay() | Gets the day of the week (0 = Sunday, 6 = Saturday). |
getHours() | Gets the hours. |
getMinutes() | Gets the minutes. |
getMonth() | Gets the month as a number (0 = January, 11 = December). |
getSeconds() | Gets the seconds. |
getTime() | Gets the current time in milliseconds. |
getTimezoneOffset() | Gets the timezone offset. |
getYear() | Gets the year. |
setDate() | Sets the day of the month. |
setHours() | Sets the hours. |
setMinutes() | Sets the minutes. |
setMonth() | Sets the month (0 = January, 11 = December). |
setSeconds() | Sets the seconds. |
setTime() | Sets the time in milliseconds. |
setYear() | Sets the year. |
toGMTString() | Returns a string containing the GMT date. |
toLocaleString() | Returns a string containing the local time date. |