system_get_date_formats

function system_get_date_formats

system_get_date_formats($type = NULL)

Gets the list of defined date formats and attributes.

Parameters

$type: (optional) The date type name.

Return value

An associative array of date formats. The top-level keys are the names of the date types that the date formats belong to. The values are in turn associative arrays keyed by the format string, with the following keys:

  • dfid: The date format ID.
  • format: The format string.
  • type: The machine-readable name of the date type.
  • locales: An array of language codes. This can include both 2 character language codes like 'en and 'fr' and 5 character language codes like 'en-gb' and 'en-us'.
  • locked: A boolean indicating whether or not this date type should be configura