PHP 클래스 Prado\Util\TDateTimeStamp

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.
사용 중단: since 3.2.1
부터: 3.0.4
저자: Fabio Bas ctrlaltca[AT]gmail[DOT]com
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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.

메소드 상세

digitCheck() 보호된 메소드

Assumes that if 2-digit is more than 30 years in future, then previous century.
protected digitCheck ( $y ) : integer
리턴 integer change two digit year into multiple digits

formatDate() 공개 메소드

public formatDate ( $fmt, $ts = false, $is_gmt = false ) : string
리턴 string formatted date based on timestamp $d

get4DigitYear() 공개 메소드

public get4DigitYear ( $y )

getDate() 공개 메소드

public getDate ( $d = false, $fast = false ) : array
리턴 array an array with date info.

getDayofWeek() 공개 메소드

. 6=Saturday)
public getDayofWeek ( $year, $month, $day )

getGMTDiff() 공개 메소드

public getGMTDiff ( $ts = false ) : integer
리턴 integer get local time zone offset from GMT

getTimeStamp() 공개 메소드

public getTimeStamp ( $hr, $min, $sec, $mon = false, $day = false, $year = false, $is_gmt = false ) : integer | float
리턴 integer | float a timestamp given a local time

isLeapYear() 공개 메소드

Checks for leap year, returns true if it is. No 2-digit year check. Also handles julian calendar correctly.
public isLeapYear ( $year ) : boolean
리턴 boolean true if is leap year

isValidDate() 공개 메소드

public isValidDate ( $y, $m, $d ) : boolean
리턴 boolean true if valid date, semantic check only.

parseDate() 공개 메소드

public parseDate ( $txt = false ) : array
리턴 array an array with date info.

프로퍼티 상세

$_month_leaf 보호되어 있는 정적으로 프로퍼티

protected static $_month_leaf

$_month_normal 보호되어 있는 정적으로 프로퍼티

protected static $_month_normal