Aix 修改日期時間
昨天一同事隨口問我,AIX下如何修改時間?
第一反應就是讓我想起了原來在LINUX下做ORACLE RAC時,由於更改時間導致資料庫的問題,所以就說:"有點麻煩,要注意。"
實際上如果沒有資料庫RAC,修改是很簡單的,一是使用SMIT類圖形化介面smit date;二是使用date命令直接修改,在實際專案中,很少有更改系統時間的情況,因為安裝作業系統後,重要的一項就是核對設定系統時間,如果安裝作業系統不設定正確的時間和時區,那就有點應付了。也有小機在執行過程中,時鐘不正確的案例,遇到過HP的機器有這情況,原因連HP的支援也說不清楚。
js21-1 /#>date
Wed Sep 24 11:06:04 CDT 2008
js21-1 /#>date 09241115
Wed Sep 24 11:15:02 CDT 2008
MAN中的解釋如下:
[@more@]Syntax
To Set the Date and Time as Root User
/usr/bin/date [ -n ] [ -u ] [ Date ] [ +FieldDescriptor ... ]
The following formats can be used when setting the date with the Date
parameter:
* mmddHHMM[YYyy]
* mmddHHMM[yy]
The variables to the Date parameter are defined as follows:
mm
Specifies the month number.
dd
Specifies the number of the day in the month.
HH
Specifies the hour in the day (using a 24-hour clock).
MM
Specifies the minute number.
YY
Specifies the first two digits of the year. Note: If you do not
specify the first two digits of the year, values in the range 69
to 99 refer to the twentieth century, 1969 to 1999 inclusive, and
values in the range 00 to 68 refer to years in the twenty-first
century, 2000 to 2068 inclusive.
yy
Specifies the last two digits of the year. Note: The date command
accepts a 4 digit year as input. For example, if a four-digit year
is specified, the date command tries to set the year to "YYyy" and
fails for values which are out of range (less than 1970 and
greater than 2037).
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/271063/viewspace-1010972/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- win10如何修改時間日期格式 調整時間格式和日期格式的方法Win10
- windows10系統怎麼修改時間和日期Windows
- windows10系統修改時間和日期的方法Windows
- iOS日期時間iOS
- 日期和時間
- 日期時間類
- jira修改RoadMap裡的時間格式,硬核日期格式化
- 日期和時間格式
- JavaScript 時間日期操作JavaScript
- Python 日期和時間Python
- Java日期和時間Java
- datetime日期和時間
- JavaScript動態時間日期JavaScript
- linux21-日期時間Linux
- Clickhouse 時間日期函式函式
- Unix 時間戳與日期時間戳
- JavaScript 動態時間日期JavaScript
- 日期時間格式化
- echarts 睡眠時間段+日期Echarts
- JavaScript實時變化時間日期JavaScript
- dcat-admin 統計修改時間選擇器 日期範圍查詢
- Linux修改時間Linux
- Linux 修改時間Linux
- vue 日期時間過濾器Vue過濾器
- 日期時間處理包 Carbon
- jquerydatetimepicker日期時間控制元件jQuery控制元件
- SPL 的日期時間函式函式
- JavaScript時間日期格式化JavaScript
- QT獲取日期,時間,星期QT
- JavaScript 時間日期格式轉換JavaScript
- Qt:獲取日期和時間QT
- 【Python基礎】日期和時間Python
- Java 中的時間日期 APIJavaAPI
- Java 8 的時間日期 APIJavaAPI
- Java 8 的日期時間工具Java
- Java 日期和時間 API:實用技巧與示例 - 輕鬆處理日期和時間JavaAPI
- docker修改容器時間Docker
- Pandas中時間和日期處理
- Oracle日期時間範圍查詢Oracle