Home > Backend Development > PHP Problem > What does dt mean in php

What does dt mean in php

青灯夜游
Release: 2023-03-14 08:00:02
Original
3132 people have browsed it

In PHP, the full name of dt is "Date/Time", which refers to the "Date/Time" series of functions and is a core component of PHP; the "Date/Time" function allows users to run servers from PHP scripts Get the date and time and format the date and time in different ways.

What does dt mean in php

The operating environment of this tutorial: windows7 system, PHP7.1 version, DELL G3 computer

In php, the full name of dt is "Date/Time ”, is an integral part of the core of PHP. No installation is required to use these functions.

Date/Time allows you to get the date and time from the server the PHP script is running on. You can use the Date/Time functions to format dates and times in different ways.

Note: These functions rely on the local settings of the server. Remember to take daylight saving time and leap years into account when using these functions.

Function Description
checkdate() Verifies the Gregorian date.
date_add() Add day, month, year, hour, minute and second to a date.
date_create_from_format() Returns a new DateTime object formatted according to the specified format.
date_create() Returns a new DateTime object.
date_date_set() Set a new date.
date_default_timezone_get() Returns the default time zone, used by all Date/Time functions.
date_default_timezone_set() Set the default time zone, used by all Date/Time functions.
date_diff() Returns the difference between two dates.
date_format() Returns the date formatted according to the specified format.
date_get_last_errors() Returns warnings/errors in the date string.
date_interval_create_from_date_string() Creates a DateInterval from the relevant part of the string.
date_interval_format() Format time interval.
date_isodate_set() Set ISO date.
date_modify() Modify the timestamp.
date_offset_get() Returns the time zone offset.
date_parse_from_format() Returns an associative array with details of the specified date according to the specified format.
date_parse() Returns an associative array with details for the specified date.
date_sub() Subtract the day, month, year, hours, minutes, and seconds from the specified date.
date_sun_info() Returns an array containing information about sunrise/sunset and dusk start/dusk end for the specified date and location.
date_sunrise() Returns the sunrise time of the specified date and location.
date_sunset() Returns the sunset time of the specified date and location.
date_time_set() Set the time.
date_timestamp_get() Returns the Unix timestamp.
date_timestamp_set() Sets the date and time based on a Unix timestamp.
date_timezone_get() Returns the time zone of the given DateTime object.
date_timezone_set() Set the time zone of the DateTime object.
date() Format local date and time.
getdate() Returns the date/time information of a timestamp or the current local date/time.
gettimeofday() Returns the current time.
gmdate() Format GMT/UTC date and time.
gmmktime() Returns the UNIX timestamp of the GMT date.
gmstrftime() Format GMT/UTC date and time according to locale settings.
idate() Format local time/date as an integer.
localtime() Returns the local time.
microtime() Returns the number of microseconds in the current Unix timestamp.
mktime() Returns the Unix timestamp of a date.
strftime() Format local time/date according to locale settings.
strptime() Parse the time/date generated by strftime().
strtotime() Parses any English text date or time description into a Unix timestamp.
time() Returns the Unix timestamp of the current time.
timezone_abbreviations_list() Returns an associative array containing daylight saving time, offset, and time zone name.
timezone_identifiers_list() Returns a numeric array with all time zone identifiers.
timezone_location_get() Returns the location information of the specified time zone.
timezone_name_from_ abbr() Returns the time zone name based on the time zone abbreviation.
timezone_name_get() Returns the name of the time zone.
timezone_offset_get() Returns the time zone offset relative to GMT.
timezone_open() Create a new DateTimeZone object.
timezone_transitions_get() Returns all transitions for time zones.
timezone_version_get() Returns the version of the time zone database.

Recommended study: "PHP Video Tutorial"

The above is the detailed content of What does dt mean in php. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template