ChinaUnix.net
相关文章推荐:

solaris date命令

solaris date命令 1.获取系统当前时间: date ‘+%Y%m%d%H%M%S’ 年月日时分秒 例如:20070706110300 2.修改系统时间: 格式为date mmddHHMMYYYY.SS,即月日时分年.秒 sh脚本中将date执行的结果付给一个变量时,用以下方式: currdate=` date ‘+%Y%m%d%H%M%S’`,需要说明的是等号后面的date命令是用反引号引起来的。 文件: [HOLER]solaris date 命令.rar 大小: 3KB 下载: 下载 holer [email=holeryu@hotmail.com]holery...

by holeryu - Solaris文档中心 - 2007-07-06 11:15:07 阅读(1590) 回复(0)

相关讨论

solaris date命令时间显示: 如何把分钟如08显示成8 linux可以用-号实现,可是sun上不行 急

by IFSIEO - Solaris - 2007-09-26 10:13:21 阅读(1563) 回复(0)

Complete list of FORMAT control characters supported by date command FORMAT controls the output.It can be the combination of any one of the following: %% a literal % %a locale's abbreviated weekday name (e.g., Sun) %A locale's full weekday name (e.g., Sunday) %b locale's abbreviated month name (e.g., Jan) %B locale's full month name (e.g., January) %c locale's date and time (e.g., Thu Mar 3 ...

by solar.xie - Solaris文档中心 - 2008-10-24 19:44:29 阅读(1656) 回复(0)

请问solaris 8下 如何自动去掉月份前面的0 比如 01月 只输出1月 但是12月的时候还是输出12月

by G_donkey - Solaris - 2009-01-21 15:41:49 阅读(1713) 回复(0)

solaris7下使用date命令得到前一分,时,周,月。。。。。 可以实现吗 date -d 不起作用

by marsjiang - Solaris - 2005-02-01 09:18:02 阅读(1274) 回复(2)

如何用date命令查询当前月份之前的2个月,例如用 “date +%Y%m”,查出的当前月份是200906,我想输出200904, 如果当前的月份是200901,我想输出200811

by coolminghao - Shell - 2009-06-03 10:55:56 阅读(2429) 回复(18)

求几天前/后的日期 dateSTR小弟试了一下 有 date -d "+1day/month/year/week" date -d "-1day/month/year/week" date -d "+1year1month1day" #颠倒顺序也可 date -d "yesterday/tomorrow" 不知还有没有其它格式,大家列举一下 [ 本帖最后由 爱知 于 2008-7-27 20:08 编辑 ]

by 爱知 - Shell - 2008-07-29 21:10:55 阅读(2651) 回复(16)

solaris 8 下面运行date命令,返回下面的乱码,请问是怎么回事那? 谢谢了 $date 2005骞?2鏈?4鏃?鏄熸湡鏃?17鏃?5鍒?3

by jiangeb - Solaris - 2005-12-18 22:13:33 阅读(1934) 回复(12)

date如何执行输出的格式? 我希望只输出:月 日 时:分:秒 我写的不太对:data --set='%m%d%H%M%s'

by bleem1998 - Shell - 2005-06-10 15:40:30 阅读(1250) 回复(5)

我用date -s命令设置了系统时间,可是系统重启动后,又变了。我检查了bios设置,是正确的。

by meteor_rain - 系统管理 - 2005-06-09 20:12:38 阅读(838) 回复(6)

如何返回前一天的日期,以20080729的形式返回. 开始我是用的 today=`date "+%Y%m%d"` yesterday=`expr $today - 1` 这样如果8月1号的话肯定会有错. 大家指点一下

by coolsail - BSD - 2008-07-30 17:01:30 阅读(1680) 回复(3)