EC-CUBE
Public メソッド | 変数
クラス SOAP_Type_dateTime

Public メソッド

 SOAP_Type_dateTime ($date=-1)
 toSOAP ($date=NULL)
 toString ($timestamp=0)
 _split ($datestr)
 toUTC ($datestr=null)
 toUnixtime ($datestr=null)
 compare ($date1, $date2=null)

変数

 $_iso8601
 $timestamp = -1

関数

_split ( datestr)

Splits a date/time into its components.

引数:
string | integer$datestrA unix timestamp or ISO 8601 date/time string. If empty, this object is used.
戻り値:
boolean|array An array with the date and time components or false on failure.
compare ( date1,
date2 = null 
)

Compares two dates or this object with a second date.

引数:
string | integer$date1A unix timestamp or ISO 8601 date/time string.
string | integer$date2A unix timestamp or ISO 8601 date/time string. If empty, this object is used.
戻り値:
integer The difference between the first and the second date.
SOAP_Type_dateTime ( date = -1)

Constructor.

引数:
string | integer$dateThe timestamp or ISO 8601 formatted date and time this object is going to represent.
toSOAP ( date = NULL)
toString ( timestamp = 0)

Converts this object or a timestamp to an ISO 8601 date/time string.

引数:
integer$timestampA unix timestamp
戻り値:
string An ISO 8601 formatted date/time string.
toUnixtime ( datestr = null)

Returns a unix timestamp.

引数:
string | integer$datestr
参照:
SOAP_Type_dateTime::_split
戻り値:
integer The unix timestamp.
toUTC ( datestr = null)

Returns an ISO 8601 formatted UTC date/time string.

引数:
string | integer$datestr
参照:
SOAP_Type_dateTime::_split
戻り値:
string The ISO 8601 formatted UTC date/time string.

構造体

$_iso8601
初期値:
        '# 1: centuries & years CCYY-
         (-?[0-9]{4})-
         # 2: months MM-
         ([0-9]{2})-
         # 3: days DD
         ([0-9]{2})
         # 4: separator T
         T
         # 5: hours hh:
         ([0-9]{2}):
         # 6: minutes mm:
         ([0-9]{2}):
         # 7: seconds ss.ss...
         ([0-9]{2})(\.[0-9]*)?
         # 8: Z to indicate UTC, -+HH:MM:SS.SS... for local zones
         (Z|[+\-][0-9]{4}|[+\-][0-9]{2}:[0-9]{2})?'

このクラスの説明は次のファイルから生成されました:
 全て データ構造 ネームスペース 関数 変数