Xataface  2.0alpha2
Xataface Application Framework
 All Data Structures Namespaces Files Functions Variables Groups Pages
Static Public Member Functions
Dataface_converters_date Class Reference

Static Public Member Functions

static qf2UnixTimestamp ($value)
static qf2Table ($value)
static parseDate ($value)
static isTimeStamp ($value)
static date_to_string ($value)
static datetime_to_string ($value)
static time_to_string ($value)
static timestamp_to_string ($value)
static inRange ($date)

Detailed Description

File: Dataface/converters/date.php Author: Steve Hannah shann.nosp@m.ah@s.nosp@m.fu.ca Created: October 19, 2005

Description:

Utility functions for converting dates from one format to another.

Definition at line 29 of file date.php.

Member Function Documentation

static date_to_string (   $value)
static

Convert a date array to a string. Can be called statically.

Definition at line 155 of file date.php.

static datetime_to_string (   $value)
static

Converts a datetime array to a string.

Definition at line 166 of file date.php.

static inRange (   $date)
static

Definition at line 204 of file date.php.

static isTimeStamp (   $value)
static

Returns true of the given value is a timestamp.

Definition at line 144 of file date.php.

static parseDate (   $value)
static

Converts a quickform date field value as returned by $element->getValue() to a date array that can be stored in a Dataface_Table object.

Definition at line 59 of file date.php.

static qf2Table (   $value)
static

Specifically parses a value from a quickform date element to be in the format accepted by a Dataface_Table object date field.

Definition at line 45 of file date.php.

static qf2UnixTimestamp (   $value)
static

Converts a quickform date field value as returned by $element->getValue() to a unix timestamp.

Definition at line 35 of file date.php.

static time_to_string (   $value)
static

Converts a time array to a string.

Definition at line 179 of file date.php.

static timestamp_to_string (   $value)
static

Converts a timestamp array to a string.

Definition at line 189 of file date.php.


The documentation for this class was generated from the following file: