SOAP
[ class tree: SOAP ] [ index: SOAP ] [ all elements ]

Class: SOAP_Type_dateTime

Source Location: /SOAP-0.9.2/Type/dateTime.php

Class Overview


This class converts from and to unix timestamps and ISO 8601 date/time.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 33]
This class converts from and to unix timestamps and ISO 8601 date/time.


[ Top ]


Class Variables

$timestamp =  -1

[line 53]


Type:   mixed


[ Top ]



Method Detail

SOAP_Type_dateTime (Constructor)   [line 62]

SOAP_Type_dateTime SOAP_Type_dateTime( [string|integer $date = -1])

Constructor.

Parameters:

string|integer   $date   —  The timestamp or ISO 8601 formatted date and time this object is going to represent.

[ Top ]

compare   [line 218]

integer compare( string|integer $date1, [string|integer $date2 = null])

Compares two dates or this object with a second date.
  • Return: The difference between the first and the second date.

Parameters:

string|integer   $date1   —  A unix timestamp or ISO 8601 date/time string.
string|integer   $date2   —  A unix timestamp or ISO 8601 date/time string. If empty, this object is used.

[ Top ]

toSOAP   [line 76]

void toSOAP( [ $date = NULL])

Alias of SOAP_Type_dateTime::toUTC.

Parameters:

   $date   — 

[ Top ]

toString   [line 88]

string toString( [integer $timestamp = 0])

Converts this object or a timestamp to an ISO 8601 date/time string.
  • Return: An ISO 8601 formatted date/time string.

Parameters:

integer   $timestamp   —  A unix timestamp

[ Top ]

toUnixtime   [line 193]

integer toUnixtime( [string|integer $datestr = null])

Returns a unix timestamp.
  • Return: The unix timestamp.

Parameters:

string|integer   $datestr   —  @see SOAP_Type_dateTime::_split

[ Top ]

toUTC   [line 169]

string toUTC( [string|integer $datestr = null])

Returns an ISO 8601 formatted UTC date/time string.
  • Return: The ISO 8601 formatted UTC date/time string.

Parameters:

string|integer   $datestr   —  @see SOAP_Type_dateTime::_split

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:33:02 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.