XmlRpc/Value/DateTime.php
- category
- Zend
- copyright
- Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- license
- http://framework.zend.com/license/new-bsd New BSD License
- package
- Zend_XmlRpc
- subpackage
- Value
- version
- $Id: DateTime.php 20278 2010-01-14 14:48:59Z ralph $
- Classes
- Zend_XmlRpc_Value_DateTime
Description
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
Zend_XmlRpc_Value_DateTime
- Extends from
- Zend_XmlRpc_Value_Scalar
- category
- Zend
- copyright
- Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- license
- http://framework.zend.com/license/new-bsd New BSD License
- package
- Zend_XmlRpc
- subpackage
- Value
- Properties
- $_phpFormatString
- $_isoFormatString
- Methods
- __construct
- getValue
Description
Properties
string $_isoFormatString = 'YYYYMMddTHH:mm:ss'
ISO compatible format string for XML/RPC datetime values
Details
- $_isoFormatString
- string
- visibility
- protected
- default
- YYYYMMddTHH:mm:ss
- final
- false
- static
- false
string $_phpFormatString = 'Ymd\\TH:i:s'
PHP compatible format string for XML/RPC datetime values
Details
- $_phpFormatString
- string
- visibility
- protected
- default
- Ymd\\TH:i:s
- final
- false
- static
- false
Methods
__construct(
mixed $value
)
:
Set the value of a dateTime.iso8601 native type
The value is in iso8601 format, minus any timezone information or dashes
Arguments
- $value
- mixed
Integer of the unix timestamp or any string that can be parsed to a unix timestamp using the PHP strtotime() function
Details
- visibility
- public
- final
- false
- static
- false
getValue(
)
:
int
Return the value of this object as iso8601 dateTime value
Output
- int
- As a Unix timestamp
Details
- visibility
- public
- final
- false
- static
- false