-
Notifications
You must be signed in to change notification settings - Fork 2
Formatter constants equivalence
jmrozanec edited this page Jun 2, 2015
·
2 revisions
Meaning | Jodatime | JDK12 | Example |
---|---|---|---|
era | G | G | AD |
centuryOfEra | C | 20 | |
yearOfEra | Y | 1996 | |
weekyear | x | Y | 1996 |
weekOfWeekyear | w | w | 27 |
weekOfMonth | W | 2 | |
dayOfWeekInMonth | F | 2 | |
dayOfWeekNumber | e | u | 2 |
dayOfWeekName | E | E | Tuesday; Tue |
year | y | y | 1996 |
dayOfYear | D | D | 189 |
monthOfYear | M | M | July; Jul; 07 |
dayOfMonth | d | d | 10 |
halfdayOfDay | a | a | PM |
hourOfHalfday | K | K | 0~11 |
clockhourOfHalfday | h | h | 1~12 |
hourOfDay | H | H | 0~23 |
clockhourOfDay | k | k | 1~24 |
minuteOfHour | m | m | 30 |
secondOfMinute | s | s | 55 |
fractionOfSecond | S | S | 978 |
timezone | z | z | Pacific Standard Time; PST |
timezoneRFC822 | Z | Z | -0800; -08:00; America/Los_Angeles |
timezoneISO8601 | Z | X | -08; -0800; -08:00 |