Time zone resolution and how to adjust the time zone in Linux preface today we found that the system time of Centos6.0-64bit in Vmware is several hours different from that of the host machine. after adjusting the system time, restart and restore the
Time zone resolution and how to adjust the time zone in Linux preface today we found that the Centos 6.0-64bit system time in Vmware differs from the host time for several hours, after adjusting the system time, restart and restore the system. So I
For the Division of time zones, see Wikipedia: http://zh.wikipedia.org/wiki/%E6%99%82%E5%8D%80
In Java, the time class has two key classes:
Java. util. Calendar;
Java. util. Date;
When I was using the PostgreSQL database today, a timestamp with
Rm/etc/localtimeLn-sf/usr/share/zoneinfo/america/anguilla/etc/localtimeTo re-establish a soft connection for the localtime configuration problemImmediate effect[[Email protected] ~]# DateFri SEP 4 04:58:20 AST 2015Set the system time:Date-s
Nowadays, more and more work needs to use the time zone concepts around the world. Recently, I have seen abbreviations such as DST, EDT, PDT, wet, and CCT in my documents, which makes me dizzy. So I made a memo on the Internet:
The time zone
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
Http://www.linuxidc.com/Linux/2010-09/28537.htmThe exchange of date and timestamp under Linux1. Date to timestamp:$ Date-d ' 2009-12-01 23:20 ' +%s 12596808002. Timestamp to date$ Date-d ' 1970-01-01 1259680800 sec UTC ' Tue Dec 1 23:20:00 CST 20093.
Internal storage format:
century, year, month, day, hour, minute, second
The default format is: DD-MON-RR.
Sysdate returns the current system time.
SELECT sysdate from DUAL;
The mathematical operation of a date
SELECT (sysdate-hire_date)/7 from
Internal Storage Format:Century, year, month, day, hour, minute, secondThe default format is DD-MON-RR.SYSDATE returns the current system time.Select sysdate from dual;Mathematical operations on datesSELECT (SYSDATE-HIRE_DATE)/7 from tablename where
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.