1,655
edits
m (→Day formats) |
m (→Date formats) |
||
Line 271: | Line 271: | ||
====Date formats==== | ====Date formats==== | ||
The [[#Year formats]], [[#Month formats]], and [[#Day formats]] listed above can be combined to make up a date output modifier, but there are some other modifiers available that can produce whole dates. | The [[#Year formats|Year formats]], [[#Month formats|Month formats]], and [[#Day formats|Day formats]] listed above can be combined to make up a date output modifier, but there are some other modifiers available that can produce whole dates. | ||
[[#Locales]] will define a | The [[#Locales|locale]] will define a ''Short Date Format'' and a ''Long Date Format''. You will see references to those in the table below explaining available output format modifiers, for example the single character output format modifier ('''G''') listed at the start. | ||
If you are in the USA, Cumulus will only use your month first date internally for the start date (see [[Cumulus.ini | If you are in the USA, Cumulus will only use your month first date internally for the start date (see [[Cumulus.ini]]), that format will not be used in any files in the [[Data folder|data sub-folder]], but you can see your preferred format in the settings pages, in the extreme record editing pages, and by default as an output from many (not all) web tags. For any web tags that do permit use of output date modification format parameters, you can can combine any month specifier, with any day of month specifier, in that order, to get an output where the month appears first (see example in table below). | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
!style="width:150px" | | !style="width:150px" | Specifier | ||
!style="width:600px" | Displays | !style="width:600px" | Displays | ||
!style="width:600px" | Example | !style="width:600px" | Example | ||
|- | |- | ||
| G (as single character format) | | G (as single character format) | ||
| Displays the date using the format given by the Short Date format, followed by the time using the format given by the Long Time format | | Displays the date using the format given by the Short Date format, followed by the time using the format given by the Long Time format. | ||
| '22/03/2019 09:47:25' produced by | | '22/03/2019 09:47:25' produced by <#time format=G> | ||
|- | |- | ||
| ddddd (5 characters long) | | ddddd (5 characters long) | ||
| | | Displays the date using the format given by the Short Date format. | ||
Note: 'd' (when on its own, without '%' prefix) displays seemingly inconsistent behaviour as its effect depends on the tag name) with which it is used. | |||
| | | Short date format e.g. '22/03/2019' (British Locale) produced by <#metdate format=ddddd> | ||
|- | |- | ||
|D (as single character format) | |D (as single character format) | ||
|Displays the date using the format given by the Long Date format. | |Displays the date using the format given by the Long Date format. | ||
|e.g. '22 March 2020' (British Locale) | |e.g. '22 March 2020' (British Locale) | ||
|- | |- | ||
|M | |M | ||
|Day of month followed by Month name. | |Day of month followed by Month name. | ||
Note this is different output to '''format=%M''' (see [[#Month formats]]). Not applicable to USA locales. | |||
| e.g. 22 July (English Locale) | | e.g. 22 July (English Locale) | ||
|- | |- | ||
|"MMMM d" if M alone does not work | |"MMMM d" if M alone does not work | ||
| USA format of month before day of month | | USA format of month before day of month | ||
| e.g. July 4 (USA format) | | e.g. July 4 (USA format) | ||
|} | |} | ||