You are here

private static function DatexPoorMansJaliliCalendar::getDayNames in Datex 8

1 call to DatexPoorMansJaliliCalendar::getDayNames()
DatexPoorMansJaliliCalendar::_format in src/Datex/DatexPoorMansJaliliCalendar.php

File

src/Datex/DatexPoorMansJaliliCalendar.php, line 318
Fallback calendar implementation in case php-intl is not avaiable.

Class

DatexPoorMansJaliliCalendar
Jalali calendar for datex.

Namespace

Drupal\datex\Datex

Code

private static function getDayNames($convert, $day, $shorten = FALSE, $len = 1, $numeric = FALSE) {
  $day = substr(strtolower($day), 0, 3);
  $day = $convert ? self::$days_conv[$day] : self::$days[$day];
  return $numeric ? $day[0] : ($shorten ? self::substr($day[1], 0, $len) : $day[1]);
}