Property | Type | Description | |
---|---|---|---|
$_month_leaf | |||
$_month_normal |
Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
digitCheck ( $y ) : integer | Fix 2-digit years. Works for any century. |
protected digitCheck ( $y ) : integer | ||
return | integer | change two digit year into multiple digits |
public formatDate ( $fmt, $ts = false, $is_gmt = false ) : string | ||
return | string | formatted date based on timestamp $d |
public getGMTDiff ( $ts = false ) : integer | ||
return | integer | get local time zone offset from GMT |
public getTimeStamp ( $hr, $min, $sec, $mon = false, $day = false, $year = false, $is_gmt = false ) : integer | float | ||
return | integer | float | a timestamp given a local time |
public isLeapYear ( $year ) : boolean | ||
return | boolean | true if is leap year |
public isValidDate ( $y, $m, $d ) : boolean | ||
return | boolean | true if valid date, semantic check only. |