This site is supported by donations to The OEIS Foundation.

Template:Fullmonth/doc

From OeisWiki
Jump to: navigation, search

This documentation subpage contains instructions, categories, or other information for Template:Fullmonth. [<Edit> Template:Fullmonth]

[⧼Purge⧽ Template:Fullmonth/doc]

The {{fullmonth}} date and time function template changes a full month name, a standard three letter month abbreviation or a month number (up to two digits) from 1 to 12, with or without a leading zero, into the full month name.

Usage

{{fullmonth|a full month name, a three letter month abbreviation or a month number (up to two digits) from 1 to 12, with or without a leading zero}}

or

{{fullmonth}} which defaults to local full month name of OEIS Wiki server

Examples

Examples with valid input

Code Result
{{fullmonth|jan}} January
{{fullmonth|Jan}} January
{{fullmonth|FEBruary}} February
{{fullmonth|SEP}} September
{{fullmonth|4}} April
{{fullmonth|06}} June
{{fullmonth|007}} July
{{fullmonth}} April

Examples with invalid input

Code Result
{{fullmonth|Hex}} Fullmonth error: invalid input
{{fullmonth|13}} Fullmonth error: invalid input
{{fullmonth|-1}} Fullmonth error: invalid input
{{fullmonth|6.5}} Fullmonth error: invalid input

Code


<!-- The second column will have its use! For the third column, leading zeros are ignored. -->

{{#switch: {{lc: {{{1|{{LOCALMONTHNAME}}}}} }}
  | jan=January   | january=January     |  1=January
  | feb=February  | february=February   |  2=February
  | mar=March     | march=March         |  3=March
  | apr=April     | april=April         |  4=April
  | may=May       | may=May             |  5=May
  | jun=June      | june=June           |  6=June
  | jul=July      | july=July           |  7=July
  | aug=August    | august=August       |  8=August
  | sep=September | september=September |  9=September
  | oct=October   | october=October     | 10=October   
  | nov=November  | november=November   | 11=November  
  | dec=December  | december=December   | 12=December  
  | {{error| Fullmonth error: invalid input}}
}}

See also

  • {{daynum}} gives the weekday number (0 to 6) for (Sun to Sat)
  • {{day}} gives the standard three letter weekday abbreviation.
  • {{fullday}} gives the full weekday name.


  • {{monthnum}} gives the month number (padded left with 0 if necessary to get two decimal digits) (01 to 12)
  • {{month}} gives the standard three letter month abbreviation.
  • {{fullmonth}} gives the full month name.
  • {{days in month}} (or {{monthdays}}) gives the number of days in a month (for any year from 1 AD to 10000 AD)


  • {{yearday}} returns the day of year from year, month and monthday (for any year from 1 AD to 10000 AD)
  • {{ifleapyear}} or {{if leap year}} returns different values depending on whether a given year is a leap year or a common year (for any year from 1 AD to 10000 AD)
  • {{is leap year}} predicate function template returns 1 (if true) or 0 (if false) depending on whether a given year is a leap year or a common year (for any year from 1 AD to 10000 AD)
  • {{Century}} returns the century for any nonzero (negative or positive) year
  • {{Millennium}} returns the millennium for any nonzero (negative or positive) year


  • {{to day of CE}} returns the day of CE (Christ Era) from year, month and monthday (for any year from 1 AD to 10000 AD)
  • {{from day of CE}} returns year, month and monthday (for any year from 1 AD to 10000 AD) from the day of CE (Christ Era)


  • {{date}} for date mathematics (for any year from 1 AD to 10000 AD) (returns the date offset a specified number of days from a given date)
  • {{days between}} for date mathematics (for any years from 1 AD to 10000 AD) (returns the number of days between two dates)