hp-ux 修改系统时间
date - display or set the date and time
date [-u]
The date command displays or sets the current HP-UX system clock date
and time. Since the HP-UX system operates in Coordinated Universal
Time (UTC), date automatically converts to and from local standard or
daylight/summer time, based on your TZ environment variable. See
Environment Variables in EXTERNAL INFLUENCES below.
date recognizes the following option:
functionally equivalent to Greenwich Mean Time (GMT),
instead of in local time.
Slowly adjust the time by sss.fff seconds (fff represents
fractions of a second). This adjustment can be positive or
negative. The system's clock will be sped up or slowed down
until it has drifted by the number of seconds specified.
The date command has two forms for displaying the date and time and
one form for setting them.
same as for the %c formatting directive for all languages
except the C default language. See Formatting Directives
and EXAMPLES below.
directives specified in format, which is a string of zero
or more formatting directives and ordinary characters.
If it contains blanks, enclose it in apostrophes or
quotation marks.
output string.
character.
is output.
specified. You require the superuser privilege.
is assumed to be in Coordinated Universal Time (UTC).
two-digit pairs as follows:
dd Day number in the month [01-31].
hh Hour number (24-hour system) [00-23].
mm Minute number [00-59].
cc Century minus one [19-20].
yy Last two digits of the year number [70-99, 00-
37 (1970-1999, 2000-2037)]. If omitted, the
current year is used.
the warning,
clock backwards; anything else to cancel the command.
records is written to the file /var/adm/wtmps.
generated if date is set backwards.
The following formatting directives, shown without the optional field
width and precision specification, are replaced by the indicated
characters. If a directive is not one of the following, the result is
undefined.
language/locale settings. See Environment Variables in EXTERNAL
INFLUENCES below.
January 12, 1994 at 7:45:58 p.m. Pacific Standard Time, using the C
default language.
12 19:45:58 1994.
integer) as a two-digit decimal number [00-99]. For
example, 19.
example, 12.
leading space fill [" 1"-"31" ]. For example, 12.
For example, 19.
For example, 07.
For example, 012.
01.
45.
leap seconds) [00-61]. For example, 58.
For example, 3.
week) as a two-digit decimal number [00-53]. All days that
precede the first Sunday in the year are considered to be in
week 00. For example, 02.
week) as a two-digit decimal number [01-53]. If the week
containing January 1 has four or more days in the new year
(January 1 is Thursday or sooner), it is designated as week
01; otherwise, (January 1 is Friday or later), it is
designated as the last week of the previous year, and the
next week is week 01. For example, 02.
Saturday)]. For example, 3.
week) as a two-digit decimal number [00-53]. All days that
precede the first Monday in the year are considered to be in
week 00. For example, 02.
For example, 93.
2037]. For example, 1994.
determined). For example, PST.
The following directives are provided for backward compatibility. It
is recommended that the preceding directives be used instead.
or %m/%d/%y instead.
"%I:%M:%S %p" instead.
or %H:%M:%S instead.
determined). For example, PST. Use %Z instead.
Some Formatting Directives can be modified by the E and O modifier
characters to indicate a different format or specification for the
language specified in the LC_TIME environment variable.
is not specified or not supported, the unmodified field descriptor
value is used. The command
locale(1)).
representation.
leading space-character fill if applicable.
symbols.
symbols.
week) using the alternate numeric symbols.
(Sunday=0).
the week) using the alternate numeric symbols.
An optional field width and precision specification can immediately
follow the initial % of a formatting directive in the following order:
field width in which the result of the conversion is
right- or left-justified. The default is right-
justified with space padding on the left. If the
string starts with "-", the result is left-justified
with space padding on the right. If the string
starts with "0", the result is right-justified and
padded with zeros on the left.
number of digits to appear for the d, H, I, j, m, M,
o, S, U, w, W, y, and Y numeric directives. If a
directive supplies fewer digits than specified by the
precision, it will be expanded with leading zeros.
used from the a, A, b, B, c, D, E, F, h, n, N, p, r,
t, T, x, X, z, Z, and % text directives. If a
directive supplies more characters than specified by
the precision, excess characters are truncated on the
right.
W, or y directive, the default is .2; for the j directive, the default
For information about the UNIX Standard environment, see standards(5).
LC_CTYPE determines the interpretation of the bytes within the format
string as single- and/or multi-byte characters.
directives that produce numbers in the output. The characters used
are those defined by alt_digit (see locale(1) and ALT_DIGIT in
langinfo(5)).
produced by the %a directive) and format (for example, the current
time representation produced by the %X directive) of date and time
strings output by the date command.
date and time strings) are displayed.
is null, it defaults to the value of LANG.
internationalization variables default to C (see environ(5)).
time in the user's local time zone. See environ(5) and tztab(4). TZ
also determines the content (that is, the time-zone name produced by
the %z and %Z directives) of date and time strings output by the date
command.
EST5EDT. If the EST5EDT or the TZ value cannot be read from the time
zone adjustment table tztab, then date returns the time in UTC.
Single and multibyte character code sets are supported.
The following messages may be displayed.
it against the usage and for the correct range of each of the
specifier, or precision specifier.
value. Type yes (or the equivalent for your locale) to set
the clock backwards; anything else to cancel the command.
Date in Different Languages
Display the date. In this example, the TZ environment variable
contains PST8PDT, and the language environment variables are set as
noted.
date -u -> Fri Aug 20 22:03:37 UTC 1993 <- C (default)
date -> Fri, Aug 20, 1993 03:03:37 PM <- en_US.roman8 (U.S. English)
date -> Fri. 20 Aug, 1993 03:03:37 PM <- en_GB.roman8 (U.K. English)
date -> 20/08/1993 15.47.47 <- pt_PT.roman8 (Portuguese)
Set the date to Oct 8, 12:45 a.m.
Display the current date and time using a format. Note the use of
quotation marks due to the blanks in the format.
TIME: 12:45:05
With the date as set in the "Set Date" example above and LC_TIME set
to de_De.roman8 (German):
padded on the right if the month name is shorter than four characters.
The day field is two characters long, with leading zeros suppressed.
The former HP-UX format directive A has been changed to W for ANSI
compatibility.
be avoided to prevent disrupting user-scheduled and time sensitive
programs and processes. Also, changing the date can cause make and
the SCCS and cron subsystems to behave in an unexpected manner. The
cron daemon should be killed prior to setting the date backwards, then
restarted. SCCS files should be checked with the val command (see
val(1)) if deltas have been made while the clock was wrongly set.
releases: %E, %F, %o, %z.
UTC.
date was developed by AT&T and HP.
/var/adm/wtmps
locale(1), stime(2), ctime(3C), strftime(3C), tztab(4), environ(5),
lang(5), langinfo(5), standards(5).
date: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
hp-ux 修改系统时间相关推荐
- linux下如何修改系统时间
我们一般使用"date -s"命令来修改系统时间.比如将系统时间设定成2018年2月23日的命令如下. #date -s 02/23/2018 将系统时间设定成下午11点12分0秒 ...
- VB 禁止修改系统时间
VB 禁止修改系统时间 添加到网络收藏宣传得积分可免费下载本站所有资源 VB 禁止修改系统时间 当任何程序或用户修改系统时间的时候,系统会将 WM_TIMECHANGE ...
- linux 修改时间的命令,Linux 常用命令(查看版本、修改系统时间)
1.查看内核版本:cat /proc/version [root@gjxb default]# cat /proc/version Linux version 2.6.9-78.8AXS2smp (p ...
- CentOS7手动修改系统时间
CentOS7 永久修改系统时间 安装在虚拟机上的CentOS7的时间分为系统时间和硬件时间.二者都修改,重启系统(init 6 )才会永久生效. 修改步骤如下 查看当前系统时间 date 修 ...
- 转:Android中如何修改系统时间(应用程序获得系统权限)
在 android 的API中有提供 SystemClock.setCurrentTimeMillis()函数来修改系统时间,可惜无论你怎么调用这个函数都是没用的,无论模拟器还是真机,在logcat中 ...
- 计算机系统时间无法更改,电脑时间不能修改|系统时间改不了 四个处理办法
电脑时间不能修改|系统时间改不了 四个处理办法? 电脑时间不但可以让网友准确的查看时间,还对软件的运行.工作等方面至关重要,有时大家看电脑时间不准确想要修改,确发现改不了系统时间.碰到该故障的朋友不要 ...
- windows下命令行修改系统时间;修改系统时间的软件
找了很久,都没有找到,还找了关键词 dos下修改系统时间 因为看到linux下修改系统时间是用hwclock 命令写入主板芯片. 而我由于某些原因想自动化修改系统时间,所以找windows下修改系统时 ...
- 经纬度距离,修改系统时间,读取ini文件
1. 大家都知道地球是椭圆形的,同时使用一个经度和纬度可以定义唯一的位置.下面是现实从两个经纬度计算它们之间的距离 using System; using System.Collections.Gen ...
- Linux下修改系统时间并写入BIOS
我们一般使用"date -s"命令来修改系统时间.比如将系统时间设定成2005年7月26日的命令如下. #date -s 07/26/2005 将系统时间设定成下午11点12分0秒 ...
- 如何使Android应用程序获取系统权限来修改系统时间
在 android 的API中有提供 SystemClock.setCurrentTimeMillis()函数来修改系统时间,可惜无论你怎么调用这个函数都是没用的,无论模拟器还是真机,在logcat中 ...
最新文章
- java 逻辑校验工具_SpringBoot2.0实战(10)整合fluent-validator优雅业务校验
- Mac 下安装 ruby 环境解决 brew 安装 yarn 问题
- 【鸿蒙 HarmonyOS】UI 布局 ( 网格布局 TableLayout )
- 使用SharedPreferences进行数据存储
- 你想知道的关于JavaScript作用域的一切(译)
- 数学建模学习笔记——优劣解距离法(评价类)
- softened softmax vs softmax
- 负数如何归一化处理_「译」 对比归一化和标准化——量化分析
- java中流_java 中流的使用
- win7 64位操作系统中Oracle 11g + plsql安装教程详解(图解)
- Linux创建内核线程kthread_create的用法介绍
- 电路板故障测试仪GR4080软件,电路板故障检测仪
- C++(2-4)——sqrt的使用
- js获取当前域名的方法
- python:maya 一个人性化的时间处理库
- Android 体系架构/四层
- react CSS实现箭头图标
- 才发现!华为手机竟隐藏着5个高级功能
- 数据结构:求两个有序列表的交集,并集
- mingw32-make.exe缺少的方法
热门文章
- 针对于Vins-Mono中的评价工具evo中的评价参数的理解
- 39. OP-TEE中secure stroage------安全文件数据的打开过程(open)
- 日版(SoftBank, AU) iPhone5回国使用攻略调查
- 论文发表费用一般是多少
- PHP 获取微视无水印源地址_最新抖音短视频无水印地址解析原理(抖音免费解析接口),以PHP代码为例...
- 球面坐标系与指标坐标系转换
- 关于程序员职业规划的思考
- 【对话系统】Knowledge-Grounded Dialogue Generation with a Unified Knowledge Representation
- Unity UGUI坐标和世界坐标转化
- LIMEWIRE公司COO(首席运营官)Greg Bildson访谈