Recently imported data in PostgreSQL, encountering time problems, combing the time in the database:1. Basic Concepts1.1 Date: That is the commonly said year, month, and day, the following is a list of valid date formats:
Example
Concept:UNIX timestamp: Unix timestamp (UNIX epoch, Unix time, POSIX time, or Unix timestamp)It is the number of seconds that have elapsed since January 1, January 1, 1970 (midnight UTC/GMT), regardless of the leap second.The UNIX timestamp 0
Date functionDate functions manipulate Date values (fields of date type), timestamp values (TIMESTAMP, TIMESTAMP with time ZONE, and TIMESTAMP with the fields of the local time ZONE type), and interval values (INTERVAL day to SECOND and INTERVAL
Because the project needs to import the original data to the new project, and the original data Time format is the excel date format, that is, the format of xxxx/xx, the time format of the new project is stored in unix timestamp. Therefore, you need
PHP time and date, PHP time and date
PHP provides a large number of built-in functions, allowing developers to easily process time, greatly improving work efficiency. This section describes some common PHP date and time functions as well as date and
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
time stamp: Unix timestamps are a compact and concise way to save dates and times, a way to save the current date and time in most Unix systems, and a standard format for representing dates and times in most computer languages. The UNIX timestamp 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
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
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.