PHP provides a large number of built-in functions that enable developers to work on time, greatly improving productivity.Describes some common PHP date and time functions and the processing of dates and times.Frequently used date and time processing
PHP Time and date
PHP provides a large number of built-in functions that enable developers to work on time, greatly improving productivity. Describes some common PHP date and time functions and the processing of dates and times.
Common date and
Date(PHP 4, PHP 5, PHP 7)date- Formatting a local time/dateDescription ¶string Date ( string $format [, int $timestamp ]) Returns a string that is the result of an integer in a timestamp given format string. If no timestamp is given, the local
PHP date format a local time date(PHP 4, PHP 5)date- Formatting a local time/dateDescriptionstring date ( string $format [, int $timestamp ]) Returns a string that is the result of the timestamp of an integer in a given format string. If no
Date
(PHP 4, PHP 5)
date-formatting a local time/date
DescriptionString Date (string $format [, int $timestamp])
Returns a string that is the result of the timestamp of an integer in a given format string. If no timestamp is given, the local current
The syntax of plsql is different from that of tsql. For details, refer.
The syntax of plsql is different from that of tsql. For details, refer.
Mathematical functions
1. Absolute Value
S: select abs (-1) value
O: select abs (-1) value from dual
2.
Date(PHP 4, PHP 5)date-format a local time/date description?String date (string $format [, int $timestamp ])Returns a string that is the result of an integer in a timestamp given format string. If no timestamp is given, the local current time is
1.UNIX time StampPHPD processing data, especially when the time type data in the database is formatted, it is necessary to convert the time type data into the UNIX timestamp for processing. Different database systems for time-type data
cannot be
1.UNIX time StampPHPD processing of data, especially when the time type data in the database is formatted, it is necessary to convert the time type data into the UNIX timestamp processing. Data for time types in different database systems
cannot be
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.