Overview

Packages

  • Imap
    • Client

Classes

  • Horde_Imap_Client
  • Horde_Imap_Client_Auth_DigestMD5
  • Horde_Imap_Client_Base
  • Horde_Imap_Client_Cache
  • Horde_Imap_Client_Data_Acl
  • Horde_Imap_Client_Data_AclCommon
  • Horde_Imap_Client_Data_AclNegative
  • Horde_Imap_Client_Data_AclRights
  • Horde_Imap_Client_Data_Envelope
  • Horde_Imap_Client_Data_Fetch
  • Horde_Imap_Client_Data_Fetch_Pop3
  • Horde_Imap_Client_Data_Thread
  • Horde_Imap_Client_DateTime
  • Horde_Imap_Client_Exception
  • Horde_Imap_Client_Exception_NoSupportExtension
  • Horde_Imap_Client_Fetch_Query
  • Horde_Imap_Client_Ids
  • Horde_Imap_Client_Ids_Pop3
  • Horde_Imap_Client_Mailbox
  • Horde_Imap_Client_Search_Query
  • Horde_Imap_Client_Socket
  • Horde_Imap_Client_Socket_Pop3
  • Horde_Imap_Client_Sort
  • Horde_Imap_Client_Translation
  • Horde_Imap_Client_Utf7imap
  • Horde_Imap_Client_Utils
  • Horde_Imap_Client_Utils_Pop3
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Imap_Client_DateTime

A wrapper around PHP's native DateTime class that works around a PHP 5.2.x issue that does not allow DateTime objects to be serialized.

See: http://bugs.php.net/bug.php?id=41334

Copyright 2009-2012 Horde LLC (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Horde_Imap_Client_DateTime implements Serializable
Package: Imap\Client
Category: Horde
License: LGPL 2.1
Author: Michael Slusarz slusarz@horde.org
Located at Horde/Imap/Client/DateTime.php
Methods summary
public
# __construct( string $time = null )

Constructor.

Constructor.

Parameters

$time
String in a format accepted by strtotime().
public
# __toString( )

String representation: UNIX timestamp.

String representation: UNIX timestamp.

public string
# serialize( )

Serialize.

Serialize.

Returns

string
Serialized representation of this object.

Implementation of

Serializable::serialize()
public
# unserialize( string $data )

Unserialize.

Unserialize.

Parameters

$data
Serialized data.

Throws

Exception

Implementation of

Serializable::unserialize()
public boolean
# error( )

Was this an unparseable date?

Was this an unparseable date?

Returns

boolean
True if unparseable.
public
# __call( mixed $name, mixed $arguments )

Called on a function call.

Called on a function call.

Throws

Exception
API documentation generated by ApiGen