Extension:PhpTags Functions/Functions/DateTime
Appearance
These functions are similar to the native PHP functions, so you can use PHP documentation |
List of implemented objects
[edit]- DateTime β The DateTime class
- DateTimeZone β The DateTimeZone class
- DateInterval β The DateInterval class
- DatePeriod β The DatePeriod class
List of implemented functions
[edit]- checkdate β Validate a Gregorian date
- date_add β Alias of DateTime::add
- date_create_from_format β Alias of DateTime::createFromFormat
- date_create β Alias of DateTime::__construct
- date_date_set β Alias of DateTime::setDate
- date_default_timezone_get β Gets the default timezone used by all date/time functions in a script
- date_diff β Alias of DateTime::diff
- date_format β Alias of DateTime::format
- date_get_last_errors β Alias of DateTime::getLastErrors
- date_interval_create_from_date_string β Alias of DateInterval::createFromDateString
- date_interval_format β Alias of DateInterval::format
- date_isodate_set β Alias of DateTime::setISODate
- date_modify β Alias of DateTime::modify
- date_offset_get β Alias of DateTime::getOffset
- date_parse_from_format β Get info about given date formatted according to the specified format
- date_parse β Returns associative array with detailed info about given date
- date_sub β Alias of DateTime::sub
- date_sun_info β Returns an array with information about sunset/sunrise and twilight begin/end
- date_sunrise β Returns time of sunrise for a given day and location
- date_sunset β Returns time of sunset for a given day and location
- date_time_set β Alias of DateTime::setTime
- date_timestamp_get β Alias of DateTime::getTimestamp
- date_timestamp_set β Alias of DateTime::setTimestamp
- date_timezone_get β Alias of DateTime::getTimezone
- date_timezone_set β Alias of DateTime::setTimezone
- date β Format a local time/date
- getdate β Get date/time information
- gettimeofday β Get current time
- gmdate β Format a GMT/UTC date/time
- gmmktime β Get Unix timestamp for a GMT date
- gmstrftime β Format a GMT/UTC time/date according to locale settings
- idate β Format a local time/date as integer
- localtime β Get the local time
- microtime β Return current Unix timestamp with microseconds
- mktime β Get Unix timestamp for a date
- strftime β Format a local time/date according to locale settings
- strptime β Parse a time/date generated with strftime
- strtotime β Parse about any English textual datetime description into a Unix timestamp
- time β Return current Unix timestamp
- timezone_abbreviations_list β Alias of DateTimeZone::listAbbreviations
- timezone_identifiers_list β Alias of DateTimeZone::listIdentifiers
- timezone_location_get β Alias of DateTimeZone::getLocation
- timezone_name_from_abbr β Returns the timezone name from abbreviation
- timezone_name_get β Alias of DateTimeZone::getName
- timezone_offset_get β Alias of DateTimeZone::getOffset
- timezone_open β Alias of DateTimeZone::__construct
- timezone_transitions_get β Alias of DateTimeZone::getTransitions
- timezone_version_get β Gets the version of the timezonedb
Waiting for implementation
[edit]This object require PHP 5 >= 5.5.0, but now used PHP 5.3+
- DateTimeImmutable β The DateTimeImmutable class
This functions require PHP 5 >= 5.5.0, but now used PHP 5.3+
- date_create_immutable_from_format β Alias of DateTimeImmutable::createFromFormat
- date_create_immutable β Alias of DateTimeImmutable::__construct
This functions can be added by request
- date_default_timezone_set β Sets the default timezone used by all date/time functions in a script