今早做一个查询页面时,需要查询两个时间区间的跨度,使用TO_DATE函数,一开始写成了Sql代码 TO_DATE('2014-08-04 00:00:00','YYYY-MM-DD HH:mm:ss')结果报ORA-01810 格式代码出现两次的错误.后来上网查询后,发现是格式化字符串有问题,其中不...
分类:
其他好文 时间:
2014-08-04 10:41:26
阅读次数:
283
#shutdown命令:系统关机、重启等shutdown[options]…TimeTime:now(马上)+#(多少分钟后)hh:mm(几点几分)系统五分钟后关机:[root@VM_168_102_centos~]#shutdown5//系统5分钟后重启
Broadcastmessagefromroot@VM_168_102_centos
(/dev/pts/0)at16:19...
Thesystemisgoingdo..
分类:
系统相关 时间:
2014-08-03 23:33:17
阅读次数:
371
War Chess
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1732 Accepted Submission(s): 416
Problem Description
War chess is hh's...
分类:
其他好文 时间:
2014-08-02 20:58:34
阅读次数:
442
private string GetCurrentDateTime() { return DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss "); }
分类:
其他好文 时间:
2014-07-31 16:15:26
阅读次数:
207
一、关于项目测试准入和退出条件的约定说明:YYYY-MM-DD hh 前全部代码提交aone审计并为“提交测试”状态。YYYY-MM-DD hh开始冒烟,冒烟通过后则进入功能测试。1、准入条件:开发提交codereview报告,sql审核报告,测试传递报告,测试环境编译通过,冒烟测试通过。 单元测试...
分类:
其他好文 时间:
2014-07-31 12:55:56
阅读次数:
264
# include
# include
# include
# include
using namespace std;
int max(int a,int b)
{
return a>b?a:b;
}
int main()
{
int T,n,t,k,m,i,hh,min,id,num,x;
int last[1010];//最后一次开始炒饭的时间
int cot[1010];/...
分类:
其他好文 时间:
2014-07-30 14:45:53
阅读次数:
164
参考:http://msdn.microsoft.com/en-us/library/windows/hardware/ff540507(v=vs.85).aspx这是最靠谱的参考了,比.hh要直观。在Linux上稍作编辑daniel@daniel-mint ~/windbg $ awk 'BEGI...
分类:
数据库 时间:
2014-07-29 14:14:28
阅读次数:
1065
方法一:Convert.ToDateTime(string)string格式有要求,必须是yyyy-MM-dd hh:mm:ss================================================方法二:Convert.ToDateTime(string, IFormat...
分类:
其他好文 时间:
2014-07-29 11:10:56
阅读次数:
222
java.util.Date为java时间接口,已知的实现类包括Date,Time,TimeStamp
Calendar calendar=Calendar.getInstance();
DateFormat df=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date dateA=new Date(); //初始化dataA为当...
分类:
编程语言 时间:
2014-07-28 16:08:43
阅读次数:
779
js代码如下:Date.prototype.format = function(format) { /* * format="yyyy-MM-dd hh:mm:ss"; */ var o = { "M+" : this.getMonth() + 1, "d+" : this.getDate(...
分类:
Web程序 时间:
2014-07-26 14:30:40
阅读次数:
263