UTC time & local time (1)
The whole earth is divided into twenty-four time zones, each of which has its own local time. For international radio communication, a unified time is used for the sake of unification, called Universal coordination Time
Today I met, a difference of eight hours,,, Tzselect had not, but also have to use ntupdate nuclear.Online search, prepared for a rainy.~~~~~~~~~~~~~~~~1. In Linux, when viewing time with date display: Wednesday, February 17, 2013 19:04:14 CST World
Local Test Cases:
# there can be no spaces on either side of the equal sign, before the error has been out here
yesterday= ' date-d last-day +%y-%m-%d '
echo $yesterday
curday= ' Date +%y-%m-%d '
echo $curday
echo "Now time: ' Date ' +%y%m%d%T '"
1. When installing Linux, there is an option to set the time:System clock uses UTC, what does this UTC mean?World Coordination Time (Universal times COORDINATED,UTC)There are two kinds of time difference in GPS system, one is UTC, the other is LT
Date--helpUsage: date [options] ... [+ format]Or: Date [-u|--utc|--universal] [MMDDHHMM[[CC]YY][.SS]]Displays the current time in the given format, or sets the system date.-D,--date= string displays the time described by the specified string, not
In order to learn, in the virtual machine to minimize the installation of CentOS6.7, when used to find the timestamp of the file is inconsistent with the actual time, with date to view the time display:Friday, January 01, 2016 21:11:43 CSTThen the
Reprint: http://blog.gesha.net/archives/221/ Linux system time and hardware clock issues (date and Hwclock) summarize Hwclock, this is easy to faint:
1/etc/sysconfig/clock file, only valid for the Hwclock command, and only useful when the system
Get the date of the dayDate +%y-%m-%dOutput: 2011-07-28Assigns the current date to a date variabledate=$ (Date +%y%m%d)Sometimes we need to use dates before or after today, so we can use the-D parameter of dateGet Tomorrow's dateDate-d Next-day
Date of the Linux command I used-Display, modify system date TimeThis article link: http://codingstandards.iteye.com/blog/1157513 (reproduced please specify the source)Description of UseThe ATE command can be used to display and modify the system
Description of UseThe ATE command can be used to display and modify the system datetime, noting that it is not a time command.Common parametersFormat: DateDisplays the current date time.Format: Date mmddhhmmFormat: Date mmddhhmmyyyyFormat: Date
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.