Filter/DateToUtc.php

Show: inherited
Table of Contents

\Conjoon_Filter_DateToUtc

Package: Conjoon\Filter

Filter for retrieving UTC datetime values in the format YYYY-MM-dd HH:mm:ss.

The method will try to guess the timezone of the string as passed to filter(), and afterwards return it as its UTC equivalent. If your looking for this class pendant, refer to Conjoon\Filter\DateUtcToLocal, which will convert a UTC date to any valid timezone.

Parent(s)
?\Zend_Filter_Interface
Author
Thorsten Suckow-Homberg  
Category
Filter  

Methods

methodpublicfilter( mixed $value ) : string

Defined by Zend_Filter_Interface

Returns the UTC-date time format for the specified value. Will return the date for the 1970-1-1 if the passed argument was not in a valid date-format.

Parameters
Name Type Description
$value mixed
Returns
Type Description
string
Throws
Exception Description
\Conjoon_Filter_Exception If Zend_Date could not handle the passed argument. Note, that almost every time Zend_Date will try to convert the passed argument to a date object.
Documentation was generated by DocBlox 0.18.1.