SimpleDateFormat Flashcards
The super class of SimpleDateFormat is?
DateFormat
SimpleDateFormat Date and Time Patterns
What does the letter “G” represent?
Era designator; Text, ex: AD
SimpleDateFormat Date and Time Patterns
What does the letter “y” represent?
Year; 1996; 96
SimpleDateFormat Date and Time Patterns
What does the letter “Y” represent?
Week year; Year; 1996; 96
The year for a week may not have the same calendar year.
SimpleDateFormat Date and Time Patterns
What does the letter “M” represent?
Month in year; Month; July, Jul, 07
SimpleDateFormat Date and Time Patterns
What does the letter “w” represent?
Week in year,;Number; 27
SimpleDateFormat Date and Time Patterns
What does the letter “W” represent?
Week in month; Number; 2
SimpleDateFormat Date and Time Patterns
What does the letter “D” represent?
Day in year; Number; 189
SimpleDateFormat Date and Time Patterns
What does the letter “d” represent?
Day in month; Number; 2
SimpleDateFormat Date and Time Patterns
What does the letter “E” represent?
Day name in week; Text; Tuesday, Tue
SimpleDateFormat Date and Time Patterns
What does the letter “u” represent?
Date number of week (1=Monday,.. 7=Sunday); Number; 1
SimpleDateFormat Date and Time Patterns
What does the letter “a” represent?
AM/PM marker; Text; PM
SimpleDateFormat Date and Time Patterns
What does the letter “H” represent?
Hour in day; 0-23, Number; 0
SimpleDateFormat Date and Time Patterns
What does the letter “k” represent?
Hour in day; 1-24; Number; 0
SimpleDateFormat Date and Time Patterns
What does the letter “K” represent?
Hour in am/pm (0-11); Number; 0
SimpleDateFormat Date and Time Patterns
What does the letter “h” represent?
Hour in am/pm (1-12); Number; 12
SimpleDateFormat Date and Time Patterns
What does the letter “m” represent?
Minute in hour; number; 30