Access Method | Meaning |
t.get(Calendar.YEAR) |
int value of the year |
t.get(Calendar.MONTH) |
int value of the month (0-11) |
t.get(Calendar.DAY_OF_MONTH) |
int value of the day of the month (1-31) |
t.get(Calendar.DAY_OF_WEEK) |
int value of the day of the week (0-6) |
t.get(Calendar.HOUR) |
int value of the hour in 12 hour notation (0-12) |
t.get(Calendar.AM_PM) |
returns either Calendar.AM or Calendar.PM |
t.get(Calendar.HOUR_OF_DAY) |
int value of the hour of the day in 24-hour notation (0-24) |
t.get(Calendar.MINUTE) |
int value of the minute in the hour (0-59) |
t.get(Calendar.SECOND) |
int value of the second within the minute (0-59). |
t.get(Calendar.MILLISECOND) |
int value of the milliseconds within a second (0-999). |