SimpleDateFormat Flashcards

1
Q

The super class of SimpleDateFormat is?

A

DateFormat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

SimpleDateFormat Date and Time Patterns

What does the letter “G” represent?

A

Era designator; Text, ex: AD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

SimpleDateFormat Date and Time Patterns

What does the letter “y” represent?

A

Year; 1996; 96

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

SimpleDateFormat Date and Time Patterns

What does the letter “Y” represent?

A

Week year; Year; 1996; 96

The year for a week may not have the same calendar year.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

SimpleDateFormat Date and Time Patterns

What does the letter “M” represent?

A

Month in year; Month; July, Jul, 07

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

SimpleDateFormat Date and Time Patterns

What does the letter “w” represent?

A

Week in year,;Number; 27

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

SimpleDateFormat Date and Time Patterns

What does the letter “W” represent?

A

Week in month; Number; 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

SimpleDateFormat Date and Time Patterns

What does the letter “D” represent?

A

Day in year; Number; 189

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

SimpleDateFormat Date and Time Patterns

What does the letter “d” represent?

A

Day in month; Number; 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

SimpleDateFormat Date and Time Patterns

What does the letter “E” represent?

A

Day name in week; Text; Tuesday, Tue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

SimpleDateFormat Date and Time Patterns

What does the letter “u” represent?

A

Date number of week (1=Monday,.. 7=Sunday); Number; 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

SimpleDateFormat Date and Time Patterns

What does the letter “a” represent?

A

AM/PM marker; Text; PM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

SimpleDateFormat Date and Time Patterns

What does the letter “H” represent?

A

Hour in day; 0-23, Number; 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

SimpleDateFormat Date and Time Patterns

What does the letter “k” represent?

A

Hour in day; 1-24; Number; 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

SimpleDateFormat Date and Time Patterns

What does the letter “K” represent?

A

Hour in am/pm (0-11); Number; 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

SimpleDateFormat Date and Time Patterns

What does the letter “h” represent?

A

Hour in am/pm (1-12); Number; 12

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

SimpleDateFormat Date and Time Patterns

What does the letter “m” represent?

A

Minute in hour; number; 30

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

SimpleDateFormat Date and Time Patterns

What does the letter “s” represent?

A

Second in minute; Number; 55

19
Q

SimpleDateFormat Date and Time Patterns

What does the letter “S” represent?

A

Millisecond; Number; 978

20
Q

SimpleDateFormat Date and Time Patterns

What does the letter “z” represent?

A

Time zone; General Time Zone; Pacific Standard Time; PST; GMT-08:00

21
Q

SimpleDateFormat Date and Time Patterns

What does the letter “Z” represent?

A

RFC 822 Time Zone; -0800

22
Q

SimpleDateFormat Date and Time Patterns

What does the letter “X” represent?

A

ISO 8601 Time Zone (-08, -0800, 08:00)

23
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent Era (i.e. AD)?

A

G

24
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent Year (i.e. 2012)?

A

y

25
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent Week Year (i.e. 2012)?

A

Y

26
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent Month in Year (i.e. July, Jul, 07)?

A

MMMM, MMM, MM

27
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent Week in Year (i.e. 23)?

A

w

28
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent Week in Month (i.e. 3)?

A

W

29
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent Day in Year (i.e. 139)?

A

D

30
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent Day in Month (i.e. 14)?

A

d

31
Q

SimpleDateFormat Date and Time Patterns
What character is used to represent Day of Week in Month (i.e. 2)?
For example use this to output if this is the second Wednesday in July

A

F

32
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent Day Name in Week (i.e. Wednesday, Wed)?

A

E

33
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent Day Number in Week (i.e. 2)?

A

u

34
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent AM/PM marker (i.e. PM)?

A

a

35
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent Hour in Day (0-23) (i.e. 0)?

A

H

36
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent Hour in Day (1-24) (i.e. 24)?

A

k

37
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent Hour in AM/PM (0-11) (i.e. 0)?

A

K

38
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent Hour in AM/PM (1-12) (i.e. 12)?

A

h

39
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent Minute in Hour (i.e. 30)?

A

m

40
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent Second in Minute (i.e. 40)?

A

s

41
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent Milliscond (i.e. 940)?

A

S

42
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent General Time Zone (i.e. Pacific Time Zone, PST, GMT-08:00)?

A

z

43
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent RFC 822 Time Zone (i.e. -08:00)?

A

Z

44
Q

SimpleDateFormat Date and Time Patterns

What character is used to represent ISO 8601 Time Zone (i.e. -08:, -0800, -08:00)?

A

X