Template Pattern Modifiers for Date/Time Formatting
Certain modifiers can be applied to any template pattern to alter its behavior. For example, FMMonth
is the Month
pattern with the FM
modifier.
Modifier | Description |
---|---|
|
Time is before 12:00 |
|
Ignored |
|
Next field is Julian Day |
|
Fill mode (suppress padding blanks and zeros) For example: Note: The FM modifier suppresses leading zeros and trailing blanks that would otherwise be added to make the output of a pattern fixed width. |
|
Fixed format global option For example |
|
Ignored |
|
Time is on or after 12:00 |
|
Next field is time |
TH suffix |
Uppercase ordinal number suffix For example: |
th suffix |
Lowercase ordinal number suffix For example: |
TM prefix |
Translation mode (print localized day and month names based on lc_messages). For example: |