Class WFUNIXDateFormatter

Description

The UNIX date formatter converts between human-readable dates and UNIX time.

Default formatString is 'r', example: "Thu, 21 Dec 2000 16:01:07 +0200". IMPORTANT! Please be aware that some date formats are not reversible! that is, they can be shown human-readable, but not reversed into a valid time.

Located in /framework/widgets/WFFormatter.php (line 72)

WFObject
   |
   --WFFormatter
      |
      --WFUNIXDateFormatter
Direct descendents
Class Description
WFDateTimeFormatter The DateTime formatter converts between human-readable dates and PHP 5.2's DateTime object.
Variable Summary
string $formatString
Method Summary
WFUNIXDateFormatter __construct ()
void setFormatString (string $fmt)
void stringForValue ( $value)
void valueForString ( $string,  &$error)
Variables
string $formatString (line 77)
Methods
Constructor __construct (line 79)
WFUNIXDateFormatter __construct ()

Redefinition of:
WFFormatter::__construct()
setFormatString (line 120)

Set the format string (see http://www.php.net/date) to use for the formatter.

void setFormatString (string $fmt)
  • string $fmt: The format string to use in formatting the date.
stringForValue (line 85)
void stringForValue ( $value)
  • $value

Redefinition of:
WFFormatter::stringForValue()
Retrieve a string for the passed in value.

Redefined in descendants as:
valueForString (line 95)
void valueForString ( $string,  &$error)
  • $string
  • &$error

Redefinition of:
WFFormatter::valueForString()
Retreive a value for the passed in string.

Redefined in descendants as:

Inherited Methods

Inherited From WFFormatter

WFFormatter::__construct()
WFFormatter::editingStringForValue()
WFFormatter::stringForValue()
WFFormatter::valueForString()

Inherited From WFObject

WFObject::__construct()
WFObject::exposedProperties()
WFObject::getClass()
WFObject::keyPathToTargetAndKey()
WFObject::setValueForKey()
WFObject::setValueForKeyPath()
WFObject::validateValueForKey()
WFObject::validateValueForKeyPath()
WFObject::valueForKey()
WFObject::valueForKeyPath()
WFObject::valueForUndefinedKey()
WFObject::__toString()

Documentation generated on Thu, 17 Apr 2008 13:51:46 -0400 by phpDocumentor 1.4.1