You are here

private function Date::dayShortName in PersianTools 7

returns abbreviated names of the weekday

@access private

Parameters

int $dayValue:

Return value

string

1 call to Date::dayShortName()
Date::format in includes/Date.php
this is a clone of the internal php function date() with a few exceptions in the acceptable parameters

File

includes/Date.php, line 341

Class

Date

Namespace

Shamsi

Code

private function dayShortName($dayValue) {
  $weekShort = array(
    'ش',
    'ي',
    'د',
    'س',
    'چ',
    'پ',
    'ج',
  );
  return $weekShort[$dayValue];
}