Date

Class Methods

The following methods can be invoked on instances of this class.

getTimeFormat()

Returns the most suited time format for a time stamp

getDateFormat(mixed iTime, {Boolean} bNoTZ)

Returns the most suited date format for a time stamp

format(mixed strTime, string strDateFormat)

Reformats a date stamp to be human readable

formatWithTime(mixed strTime, mixed bSeperateWithBR, mixed strDateFormat, mixed strTimeFormat, {Boolean} bNoTZ)

Reformats a datetime stamp to be human readable

getTimeZones()

Returns an array of all possible timezones

getTimeZoneOffset(string strTimeZone)

Returns a timezone offset in seconds from UTC to the timezone

getTimeZoneOffsetString(mixed strTimeZone)

Returns a timezone offset as a string, which is compatible for MySQL's CONVERT_TZ function

getTimeZoneForContact(array arrContact)

Determines the timezone for a specific contact

getTimeZone()

Get current client TimeZone name

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class