Class flDate
flDate Class
Class to provide date related functions.
Package: fusionLib
Copyright: Copyright (c) 2012 - 2013 fusionLib. All rights reserved.
Located at system/libs/Date/flDate.php
Copyright: Copyright (c) 2012 - 2013 fusionLib. All rights reserved.
Located at system/libs/Date/flDate.php
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
boolean
|
|
public
float
|
|
public
|
|
public
array
|
|
public
string
|
#
toString( string $fmt = null )
Format a date into a string. Date codes are proceeded with % in the same way as MySQL DATE_FORMAT. |
public
string
|
|
public
|
|
public
integer
|
Constants summary
string |
ATOM
Standard date formats. |
#
'%Y-%m-%dT%H:%i:%s%P'
|
string |
COOKIE
|
#
'%l, %d-%M-%y %H:%i:%s %T'
|
string |
ISO8601
|
#
'%Y-%m-%dT%H:%i:%s%O'
|
string |
RFC822
|
#
'%D, %d %M %y %H:%i:%s %O'
|
string |
RFC850
|
#
'%l, %d-%M-%y %H:%i:%s %T'
|
string |
RFC1036
|
#
'%D, %d %M %y %H:%i:%s %O'
|
string |
RFC1123
|
#
'%D, %d %M %Y %H:%i:%s %O'
|
string |
RFC2822
|
#
'%D, %d %M %Y %H:%i:%s %O'
|
string |
RFC3339
|
#
'%Y-%m-%dT%H:%i:%s%P'
|
string |
RSS
|
#
'%D, %d %M %Y %H:%i:%s %O'
|
string |
W3C
|
#
'%Y-%m-%dT%H:%i:%s%P'
|
string |
TIME12
|
#
'%g:%i:%s %A'
|
string |
TIME24
|
#
'%H:%i:%s'
|
string |
TIME12SHORT
|
#
'%g:%i %A'
|
string |
TIME24SHORT
|
#
'%H:%i'
|
string |
DATE
|
#
'%Y-%m-%d'
|
string |
DATE2
|
#
'%Y-%M-%d'
|
string |
DATETIME
|
#
'%Y-%m-%d %H:%i:%s'
|
string |
DATETIMESHORT
|
#
'%Y-%m-%d %H:%i'
|
Properties summary
protected
DateTime
|
$value
The time value. |
|
protected
string
|
$defaultFmt
The default format to use for strings. |