Method |
Description |
|
checkDate ( $year, $month, $day, boolean $isJalali = true ) : boolean |
Checks whether a date is valid or not. |
|
convertNumbers ( string $string ) : string |
Convert Latin numbers to persian numbers |
|
createCarbonFromFormat ( $format, $str, null $timezone = null ) : Carbon\Carbon |
|
|
createDateTime ( $timestamp = null, null $timezone = null ) : DateTime | static |
|
|
createDatetimeFromFormat ( $format, $str, null $timezone = null ) : DateTime |
|
|
createTimeZone ( null $timezone = null ) : DateTimeZone | null |
|
|
d2g ( $jdn ) : array |
|
|
d2j ( integer $jdn ) : array |
Converts the Julian Day number to a date in the Jalaali calendar. |
|
date ( $format, boolean $stamp = false, boolean $timezone = null ) : mixed |
|
|
div ( $a, $b ) : float |
|
|
g2d ( integer $gy, integer $gm, integer $gd ) : integer |
Calculates the Julian Day number from Gregorian or Julian
calendar dates. This integer number corresponds to the noon of
the date (i.e. 12 hours of Universal Time). |
|
isLeapJalaliYear ( $jy ) : boolean |
Is this a leap year or not? |
|
isValidateJalaliDate ( integer $jy, integer $jm, integer $jd ) : boolean |
Checks whether a Jalaali date is valid or not. |
|
j2d ( integer $jy, integer $jm, integer $jd ) : integer |
Converts a date of the Jalaali calendar to the Julian Day number. |
|
jalaliCal ( integer $jy ) : array |
This function determines if the Jalaali (Persian) year is
leap (366-day long) or is the common year (365 days), and
finds the day in March (Gregorian calendar) of the first
day of the Jalaali year (jy). |
|
jalaliMonthLength ( integer $jy, integer $jm ) : integer |
Number of days in a given month in a Jalaali year. |
|
mod ( $a, $b ) : mixed |
|
|
parseFromFormat ( $format, $date ) : array |
|
|
strftime ( $format, boolean $stamp = false, null $timezone = null ) : mixed |
|
|
toGregorian ( integer $jy, integer $jm, integer $jd ) : array |
Converts a Jalali date to Gregorian. |
|
toJalali ( $gy, $gm, $gd ) : array |
Converts a Gregorian date to Jalali. |
|