Linux time modification does not restart modify time zone
First, the time to modify Linux
Root uses the date directive: Date-s
1, only modify the date, do not modify the time, input:
Linux Code
Date-s 2007-08-03
2, only modify the time, input:
In Linux often found that there is little free memory, it seems that all the memory is occupied by the system, the surface is not enough memory, it is not. This is a good feature of Linux memory management, the main feature is that no matter how
Vars:string;BeginThe FormatDateTime parameter 1 is a String format instruction, and parameter 2 is the Tdatetime type of timeS: = FormatDateTime (' C ', now); {back: 2007-12-18 23:56:05}{instruction C indicates date and time in short format}S: =
We generally use the "date-s" command to modify the system time. For example, set the system time to the November 13, 2009 command as follows.
#date-S 11/13/09
The command to set the system time to 1:12 P.M. 0 seconds is as follows.
#date-S 13:12:
1. Adjust database server timeBecause the app shook a shake activity found out of date 15 minutes, but also can continue to shake, the problem is that the database server time than the application server time is quite 18 minutes, and the app is the
Help information for the date command[Email protected] source]# 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=
Date: Date
1. Command function:
To display or set the system time and date, note that only super users can use the date command to set the time. Generally, users can only use the date command to display the time.
2. Usage:
Date [Options] [+ format]
The system input and output default policy is drop, please complete the following questions about Iptables;General policy]# iptables-a input-m State--state related,established-j accept]# iptables-a input-p tcp--dport 22-j ACCEPT]# IPTA Bles-p INPUT
Python automatically backs up the SVN version library and copies it to the remote host script
#! /Usr/bin/python #-*-coding: UTF-8-*-import osimport reimport tarfileimport datetimeimport pexpectbasedir = '/data/bak/' # folder iplist = [''] # IP
How to Implement C language for obtaining system time in Linux:
1. You can use the localtime function to obtain the values of year, month, day, hour, minute, and second respectively.
# Include // header file of C Language
# Include // I/O of
When you add data to the database today, the displayed time of the inserted data is incorrect.
Linux system time settings, so I checked some relevant information online and sorted it out for the next time.
In Linux, we usually use the "date-s"
This article describes how to modify the system time in Linux Command Line Mode.
You can use the date command to view or modify the system date and time in Linux Command Line Mode.
Date // display the current date
Date-s // set the current time.
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
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
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
First, the server hardware configuration 1, view hard disk and partition condition # fdisk-l 2. View the usage of partition space You can view each partition size, used, available, percent used, mount status 1) default Unit is K # DF 2) More
The display and setting of the system time in Linux can be used with the date command.If we enter date directly, we will display the following>>datethu Jul 18:49:55 PDT 2015It has many parameters, the following is just a few of the author parameters
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.