Function | Description | |
---|---|---|
Year | getYear() |
Returns the year as set in the object for the current timezone set.
ie. No conversion is performed. If no
year is set, this returns |
getYear(timezone) |
Returns the year as set in the object for the given If no year is set, this returns The difference between the set timezone within the object and the If the month, or day and/or hour is not set, the conversion is not performed and the currently set year is returned. If the minute is not set, or the timzone offset minutes is not passed in the parameter, the conversion is performed as if the minutes were set to zero (00). |
|
getUTCYear() |
This is identical to calling |
|
Month | getMonth() |
Returns the month as set in the object for the current timezone set.
ie. No conversion is performed. If no
month is set, this returns |
getMonth(timezone) |
Returns the month as set in the object for the given If no month is set, this returns The difference between the set timezone within the object and the If the day and/or hour is not set, the conversion is not performed and the currently set month is returned. If the minute is not set, or the timzone offset minutes is not passed in the parameter, the conversion is performed as if the minutes were set to zero (00). |
|
getUTCMonth() |
This is identical to calling |
|
Week | getWeek() |
Returns the week as set in the object for the current timezone set.
ie. No conversion is performed. If no
month is set, this returns |
getWeek(timezone) |
Returns the month as set in the object for the given If no month is set, this returns The difference between the set timezone within the object and the If the day and/or hour is not set, the conversion is not performed and the currently set month is returned. If the minute is not set, or the timzone offset minutes is not passed in the parameter, the conversion is performed as if the minutes were set to zero (00). |
|
getUTCWeek() |
This is identical to calling |