Свойство | Тип | Описание | |
---|---|---|---|
$_month_leaf | |||
$_month_normal |
Метод | Описание | |
---|---|---|
formatDate ( $fmt, $ts = false, $is_gmt = false ) : string | ||
get4DigitYear ( $y ) | ||
getDate ( $d = false, $fast = false ) : array | ||
getDayofWeek ( $year, $month, $day ) | Returns the day of the week (0=Sunday, 1=Monday, . | |
getGMTDiff ( $ts = false ) : integer | ||
getTimeStamp ( $hr, $min, $sec, $mon = false, $day = false, $year = false, $is_gmt = false ) : integer | float | ||
isLeapYear ( $year ) : boolean | Checks for leap year, returns true if it is. No 2-digit year check. Also handles julian calendar correctly. | |
isValidDate ( $y, $m, $d ) : boolean | ||
parseDate ( $txt = false ) : array |
Метод | Описание | |
---|---|---|
digitCheck ( $y ) : integer | Fix 2-digit years. Works for any century. |
protected digitCheck ( $y ) : integer | ||
Результат | integer | change two digit year into multiple digits |
public formatDate ( $fmt, $ts = false, $is_gmt = false ) : string | ||
Результат | string | formatted date based on timestamp $d |
public getGMTDiff ( $ts = false ) : integer | ||
Результат | integer | get local time zone offset from GMT |
public getTimeStamp ( $hr, $min, $sec, $mon = false, $day = false, $year = false, $is_gmt = false ) : integer | float | ||
Результат | integer | float | a timestamp given a local time |
public isLeapYear ( $year ) : boolean | ||
Результат | boolean | true if is leap year |
public isValidDate ( $y, $m, $d ) : boolean | ||
Результат | boolean | true if valid date, semantic check only. |