Because of the recent international go to Oracle on MySQL, this inevitably involves time zone and timestamp issues. Do an experiment and summarize.OracleFirst look at the definition of Oracle Concepts for timestamp:The TIMESTAMP data type is an
Timestamp with Loca time zone type syntax
tmestamp[(Fractional_seconds_precisions)] with the local zone
The biggest difference between the timestamp with the local time zone and the timesatamp with times zone is that the type converts to the
Oracle 9i has three Data Types About Time: Timestamp [(precision)] timestamp [(precision)] with Time Zone timestamp [(precision)] with local time zone, timestamp [(precision)] with Time Zone stores time zone information.
1. Oracle time zone settings
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
Linux time zone details and common time functions time and time zone The entire earth is divided into 24 time zones, each time zone has its own local time. ø UTC Time and GMT time We can think of Greenwich Mean Time (GMT = UTC), GMT and
MYSQL: note that the time zone will affect the value of TIMESTAMP. The default value is TIME_ZONESYSTEM. You can modify setglobaltime_zone dynamically.
MYSQL: note that the time zone affects the value of TIMESTAMP. The default time zone is TIME_ZONE
PHP function of the diversification and functional similarity is really a big feature, the same application can be implemented with a variety of functions, which is probably a disadvantage of open source, through the PHP time function of the system
When a user of an application is spread all over the world, the Code of the program is not necessarily dealing with the time zone. The server-side timing task for the user needs to be set to the time zone of the user.
In glow nurture, a typical
Http://tool.chinaz.com/Tools/unixtime.aspx now the Unix timestamp (Unix timestamp) is1440732364Unix Timestamp (Unix timestamp) → Beijing Time →unix timestamp (Unix timestamp) How do I get the current UNIX timestamp (Unix timestamp) in different
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.