2028. Class

2028.1. Zend\XmlRpc\Value\DateTime

2028.1.1. Methods

2028.1.1.1. __construct

__construct()

Set the value of a dateTime.iso8601 native type

The value is in iso8601 format, minus any timezone information or dashes

Parameters:mixed – Integer of the unix timestamp or any string that can be parsed to a unix timestamp using the PHP strtotime() function
Throws ExceptionValueException:
 if unable to create a DateTime object from $value

2028.1.1.2. getValue

getValue()

Return the value of this object as iso8601 dateTime value

Return type:int As a Unix timestamp

Project Versions

Table Of Contents

Previous topic

2027. Class

Next topic

2029. Class

This Page