1、使用 dba_views 回退到特定时间段,查看定义 select view_name,text from (select * From dba_views AS OF TIMESTAMP(SYSTIMESTAMP - INTERVAL '5' hour-INTERVAL '35' minut....
分类:
数据库 时间:
2015-06-16 22:28:18
阅读次数:
325
vi ~/.bashrc在.bashrc目录中,添加 alias 设置例如 cdtools='cd ~/GIT/tools'对于一条比较长的命令,如显示系统运行时长cat /proc/uptime| awk -F. '{run_days=$1 / 86400;run_hour=($1 % 86400...
分类:
系统相关 时间:
2015-06-16 21:14:50
阅读次数:
230
近日经常遇到在Linux shell中批量执行相似命令的情况。比如执行如下命令:
gifsicle --delay=100 gif/App_1_hour_*_down.gif > combine_gif/App_1_hour_down.gif
gifsicle --delay=100 gif/App_1_hour_*_up.gif > combine_gif/App_1_hour_up.gif
...
分类:
编程语言 时间:
2015-06-13 11:21:35
阅读次数:
205
显示距离当前时间的跨度--计算时间跨度:返回值为X天y时z分declareln_day_countnumber(10);ln_hour_countnumber(10);ln_min_countnumber(10);ls_time_sent_lastvarchar2(20):=‘2015-06-0708:40:20‘;ls_timespanvarchar2(100):=‘‘;begin--计算天数selectfloor(sysdate-To_date(l..
分类:
数据库 时间:
2015-06-09 17:45:14
阅读次数:
283
Calendar expireDate = Calendar.getInstance();
expireDate.set(Calendar.HOUR_OF_DAY, expireDate.get(Calendar.HOUR_OF_DAY)-20);
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
//expir...
分类:
编程语言 时间:
2015-06-09 11:48:33
阅读次数:
147
Date.prototype.format = function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hour "m+....
分类:
Web程序 时间:
2015-06-05 13:38:50
阅读次数:
158
1.time类保存在“htime.h”中,要求:
⑴
数据成员包含时(hour)、分(minute)、秒(second),为私有成员;
⑵
能给数据成员提供值的成员函数(默认值为0时0分0秒);
⑶
能分别取时、分、秒;
⑷
能输出时、分、秒(用“:”分隔),并显示上午(am)或下午(pm);
⑸
有默认值的构造函数(默认值为0时0分0秒)。
说明:成员函数均定义为公有成员。...
分类:
编程语言 时间:
2015-06-03 17:39:10
阅读次数:
322
6.脚本定时任务# Example of job definition:
# .------------------------- minute (0 - 59)
# | .--------------------- hour (0 - 23)
# | | .----------------- day of month (1 - 31)
# | | | .-...
分类:
系统相关 时间:
2015-06-03 11:48:40
阅读次数:
201
Date.prototype.format = function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hour "m+"...
分类:
其他好文 时间:
2015-06-03 00:42:00
阅读次数:
147
private void timer2_Tick(object sender, EventArgs e) { lbltime.Text = DateTime.Now.ToString(); if (DateTime.Now.Hour...