eo_php2xdate
since 2.1.3
eo_php2xdate( $phpformat = "" )
Deprecated: 3.0.0
Very basic class to convert php date format into xdate date format used for javascript.
Takes a php date format and converts it to xdate format so
that it can b used in javascript (notably the fullCalendar).
Doesn't support
- L Whether it's a leap year
- N ISO-8601 numeric representation of the day of the week (added in PHP 5.1.0)
- w Numeric representation of the day of the week (0=sun,...)
- z The day of the year (starting from 0)
- t Number of days in the given month
- B Swatch Internet time
- u microseconds
- e Timezone identifier (added in PHP 5.1.0) Examples: UTC, GMT, Atlantic/Azores
- I (capital i) Whether or not the date is in daylight saving time 1 if Daylight Saving Time, 0 otherwise.
- O Difference to Greenwich time (GMT) in hours Example: +0200
- T Timezone abbreviation Examples: EST, MDT ...
- Z Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive.
- c ISO 8601 date (added in PHP 5) 2004-02-12T15:19:21+00:00
- r RFC 2822 formatted date Example: Thu, 21 Dec 2000 16:01:07 +0200
- U Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT) See also time()
Parameters
Return value
Changelog