饶琛琳

year The year accessor returns the 4-digit year for the date.

month The month accessor returns the 1-12 month of the year for the date.

day The day accessor returns the 1-31 day of the month for the date.

hour The hour accessor returns the hour component of the time as an integer from zero to twenty-three (0-23) in line with 24-hour time.

minute The minute accessor returns the minute component of the time as an integer from zero to fifty-nine (0-59).

second The second accessor returns the second component of the time as an integer from zero to fifty-nine (0-59).