Back to Language class

Method getCalendar

public string
getCalendar
()
Getter for the calendar type
Returns
  • string The calendar type.
Since
  • 3.7.0
Class: Language
Project: Joomla

Method getCalendar - Source code

/**
 * Getter for the calendar type
 *
 * @return  string  The calendar type.
 *
 * @since   3.7.0
 */
public function getCalendar()
{
    if (isset($this->metadata['calendar'])) {
        return $this->metadata['calendar'];
    } else {
        return 'gregorian';
    }
}