|
3# 亚瑟王
[root@EmbedSky /]# date
Wed Oct 19 14:44:53 UTC 2011
[root@EmbedSky /]# date
Wed Oct 19 14:46:03 UTC 2011
[root@EmbedSky /]# date -s 082812302007
date: invalid date '082812302007'
[root@EmbedSky /]# date --help
BusyBox v1.16.0 (2010-04-17 19:14:08 CST) multi-call binary.
Usage: date [OPTIONS] [+FMT] [TIME]
Display time (using +FMT), or set time
Options:
[-s,--set] TIME Set time to TIME
-u,--utc Work in UTC (don't convert to local time)
-R,--rfc-2822 Output RFC-2822 compliant date string
-I[SPEC] Output ISO-8601 compliant date string
SPEC='date' (default) for date only,
'hours', 'minutes', or 'seconds' for date and
time to the indicated precision
-r,--reference FILE Display last modification time of FILE
-d,--date TIME Display TIME, not 'now'
-D FMT Use FMT for -d TIME conversion
Recognized TIME formats:
hh:mm[:ss]
[YYYY.]MM.DD-hh:mm[:ss]
YYYY-MM-DD hh:mm[:ss]
[[[[[YY]YY]MM]DD]hh]mm[.ss]
[root@EmbedSky /]# date -s 2007-08-28 12:30
BusyBox v1.16.0 (2010-04-17 19:14:08 CST) multi-call binary.
Usage: date [OPTIONS] [+FMT] [TIME]
Display time (using +FMT), or set time
Options:
[-s,--set] TIME Set time to TIME
-u,--utc Work in UTC (don't convert to local time)
-R,--rfc-2822 Output RFC-2822 compliant date string
-I[SPEC] Output ISO-8601 compliant date string
SPEC='date' (default) for date only,
'hours', 'minutes', or 'seconds' for date and
time to the indicated precision
-r,--reference FILE Display last modification time of FILE
-d,--date TIME Display TIME, not 'now'
-D FMT Use FMT for -d TIME conversion
Recognized TIME formats:
hh:mm[:ss]
[YYYY.]MM.DD-hh:mm[:ss]
YYYY-MM-DD hh:mm[:ss]
[[[[[YY]YY]MM]DD]hh]mm[.ss]
[root@EmbedSky /]# date
Wed Oct 19 14:48:44 UTC 2011
[root@EmbedSky /]# date 12:30:01
Wed Oct 19 12:30:01 UTC 2011
[root@EmbedSky /]# date
Wed Oct 19 12:30:03 UTC 2011
[root@EmbedSky /]# date -s 2007-08-28
date: invalid date '2007-08-28'
[root@EmbedSky /]# date -s 2007-08-28 12:30:01
BusyBox v1.16.0 (2010-04-17 19:14:08 CST) multi-call binary.
Usage: date [OPTIONS] [+FMT] [TIME]
Display time (using +FMT), or set time
Options:
[-s,--set] TIME Set time to TIME
-u,--utc Work in UTC (don't convert to local time)
-R,--rfc-2822 Output RFC-2822 compliant date string
-I[SPEC] Output ISO-8601 compliant date string
SPEC='date' (default) for date only,
'hours', 'minutes', or 'seconds' for date and
time to the indicated precision
-r,--reference FILE Display last modification time of FILE
-d,--date TIME Display TIME, not 'now'
-D FMT Use FMT for -d TIME conversion
Recognized TIME formats:
hh:mm[:ss]
[YYYY.]MM.DD-hh:mm[:ss]
YYYY-MM-DD hh:mm[:ss]
[[[[[YY]YY]MM]DD]hh]mm[.ss]
[root@EmbedSky /]# date
Wed Oct 19 12:36:13 UTC 2011
设置时间为2007-08-2812:30 我这个怎么办啊?TQ2440开发板,我刚学的 |
|