PHP Object Framework (PHPOF) Manual

XDateTime Class

Functions to assist when dealing with dates and times, especially ISO8601-formatted dates/times

Constructor Description

[none]

This class is primarily intended to be used uninstantiated.

This class contains useful functions for dealing with dates and times, especially ISO8601-formatted dates/times (i.e. dates in the format YY[YY]-MM-DD and times in the format HH:MM[:SS]).

Public Properties

[none]

Public Methods

::GetISODateNow - Get the current date in ISO8601 format
::GetISOTimeNow - Get the current time in ISO8601 format
::IsISODateNew - Find out whether a given date is recent
::ISODate2Timestamp - Convert an ISO8601 date to a UNIX timestamp
::ISODate2UKDotted - Convert an ISO8601 date to a UK 'dotted' format
::SplitISODate - Split an ISO8601 date into its constituent parts
::Timestamp2ISODate - Convert a UNIX timestamp to an ISO8601 date