Class TDateTimeStamp
TDateTimeStamp Class
TDateTimeStamp Class is a wrapper to DateTime: http://php.net/manual/book.datetime.php Prado implemented this class before php started shipping the DateTime extension. This class is deprecated and left here only for compatibility for legacy code. Please note that this class doesn't support automatic conversion from gregorian to julian dates anymore.
Package: System\Util
Deprecated: since 3.2.1
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Fabio Bas ctrlaltca[AT]gmail[DOT]com
Since: 3.0.4
Located at Util/TDateTimeStamp.php
Deprecated: since 3.2.1
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Fabio Bas ctrlaltca[AT]gmail[DOT]com
Since: 3.0.4
Located at Util/TDateTimeStamp.php
public
|
#
getDayofWeek( integer $year, integer $month, integer $day )
Returns the day of the week (0=Sunday, 1=Monday, .. 6=Saturday) |
public
boolean
|
#
isLeapYear( float $year )
Checks for leap year, returns true if it is. No 2-digit year check. Also handles julian calendar correctly. |
protected
integer
|
#
digitCheck( mixed $y )
Fix 2-digit years. Works for any century. Assumes that if 2-digit is more than 30 years in future, then previous century. |
public
|
|
public
integer
|
|
public
array
|
|
public
array
|
|
public
boolean
|
|
public
string
|
|
public
integer|float
|
#
getTimeStamp( mixed $hr, mixed $min, mixed $sec, mixed $mon = false, mixed $day = false, mixed $year = false, mixed $is_gmt = false )
|
protected static
array
|
$_month_normal | array("",31,28,31,30,31,30,31,31,30,31,30,31) |
|
protected static
array
|
$_month_leaf | array("",31,29,31,30,31,30,31,31,30,31,30,31) |