ChinaUnix.net
相关文章推荐:

内核取时间

公司的程序会每天产生一个文件夹,以当天时间命名,格式 2009-03-02 ,需要写一个脚本,当天删两天前的这个文件夹,请问怎么这个文件夹名?

by mofangqt - Shell - 2009-03-17 15:22:39 阅读(787) 回复(2)

相关讨论

public class WhichWeek { public static void main(String[] args) { //基数日期,例如 2006年9月3号 Calendar calBase = Calendar.getInstance(); calBase.set(2006, 9 - 1, 3); //当前日期,这里 JVM 运行机器的日期, // 如果要数据库日期,可以使用 Oracle 的 SYSDATE 得。 // 然后用 Calendar 类的 setTimeInMillis() 方法设置日期 Calendar calCurrent = Calendar.getInstance(); //基数日期和当前日期各为...

by uumylife - Java文档中心 - 2007-11-03 23:46:00 阅读(579) 回复(0)

碰到个问题,用Shell月份和日子的时间,补0的问题,我现在要3月3日,Shell的话可以用date出0303,但能不能把0去掉,只要33就行了?因为具体程序要应用,所以只能这样来

by mysnopy - Shell - 2007-04-01 16:24:30 阅读(1210) 回复(4)

时间格式是YYYYMMDDHH,在一组这样的时间里,怎么找到最早的那个,急!!!!

by siraseru - Shell - 2006-05-30 11:40:58 阅读(818) 回复(8)

export TZ="TAIST+16" date export TZ="TAIST-8" 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/16038/showart_90874.html

by tomteng - AIX文档中心 - 2006-03-25 20:02:52 阅读(754) 回复(0)

请问各位大侠系统时间函数都有哪些?

by leon_leon - AIX - 2005-08-09 22:49:00 阅读(911) 回复(1)

前一天时间,想要得到****_**_**的格式,该怎样写,谢了 perl -e 'print scalar localtime(time()-1*86400),"\n"'

by cuci - Perl - 2005-07-15 15:15:26 阅读(1284) 回复(3)

在aix中,有没有这方面的系统调用:可以一次得系统的 年月日时分秒毫秒 我现在是先得到 年月日时分秒,再得到毫秒,发现有问题。 那位大侠可以帮助解决这个问题,先谢谢了

by lc_lufeng - AIX - 2004-01-07 13:51:39 阅读(855) 回复(2)

由于线程调度,在windows上去系统时间会有20毫秒的误差. 是linux上我以前是使用gettimeofday()来获得时间的 请问使用使用gettimeofday()在FreeBSD上的误差能有多大阿? 使用gettimeofday与clock_gettime那个更好一点阿?今天看云风的博客,他在06年的一篇博客说他们当时做游戏使用的clock_gettimeofday() 个人以为:虽然clock_gettime可以到纳秒的精度,gettimeofday只可以到微妙,不过我们的服务器程序其实不需要那么...

by UnixStudier - C/C++ - 2009-06-24 22:07:45 阅读(707) 回复(0)

public static String getCurrentDateString(String format) { Date date = new Date(); SimpleDateFormat sf = new SimpleDateFormat(format); return sf.format(date); } 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/84425/showart_1888905.html

by w1_xiao - Java文档中心 - 2009-04-02 16:43:52 阅读(633) 回复(0)

import java.text.DateFormat; import java.util.*; public class Dates { Date param=null; Calendar ca=Calendar.getInstance(); public Dates() { param=new Date(); ca.setTime(param); } public Dates(Date vars) { param=vars; ca.setTime(param); } public Dates(int y,int m,int d) { y=y-1900;m=m-1; param=new Date(y,m,d); ca.setTime(param); } // public int getYear() { return ca.g...

by mesum - Java - 2008-04-11 20:55:22 阅读(953) 回复(0)