一、time模块 表示时间的三种方式: 时间戳:数字(计算机能认识的) 时间字符串:t='2012-12-12' 结构化时间:time.struct_time(tm_year=2017, tm_mon=8, tm_mday=8, tm_hour=8, tm_min=4, tm_sec=32, tm_ ...
分类:
其他好文 时间:
2017-08-08 21:45:10
阅读次数:
139
点击查看原文 先上方法调用,写最经常使用的。其它不一一写 保存数据: ACache mACache=ACache.get(this); mACache.put("数据名称", json, ACache.TIME_HOUR);//数据名称最为标记,Json数组,缓存时间 读取数据: JSONObjec ...
分类:
移动开发 时间:
2017-08-05 11:08:10
阅读次数:
221
datetime.date:表示日期的类。常用的属性有year, month, day;datetime.time:表示时间的类。常用的属性有hour, minute, second, microsecond;datetime.datetime:表示日期时间。datetime.timedelta:表 ...
分类:
编程语言 时间:
2017-08-03 18:54:52
阅读次数:
151
1 var date = new Date(); 2 var year = date.getFullYear(); 3 var month = date.getMonth()+1; 4 var day = date.getDate(); 5 var hour = date.getHours(); 6... ...
分类:
Web程序 时间:
2017-08-03 13:50:37
阅读次数:
166
insert into tableName(type1,type2,type3) values (“q1”,”w1”,”e1”),( “q2”,”w2”,”e2”) ,( “q3”,”w3”,”e3”); UPDATE app_history_statistics_by_hour SET h00 = ...
分类:
数据库 时间:
2017-07-31 14:42:44
阅读次数:
144
date_add() 增加MYSQL 获取当前时间加上一个月 date_sub()减少 month 月份minute 分钟second 秒hour 小时week 周quarter 刻year 年获得当前时间:now();sysdate()获得当前时间戳函数:current_timestamp, cu ...
分类:
数据库 时间:
2017-07-29 14:05:22
阅读次数:
263
function conver(){ var date = new Date(); var year = date.getFullYear() var month=date.getMonth()+1; var day = date.getDate(); var hour = date.getHour ...
分类:
Web程序 时间:
2017-07-26 10:42:38
阅读次数:
133
tm结构体的定义在time.h里面 struct tm { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; int tm_yday; int tm_isdst; }; /* ...
分类:
系统相关 时间:
2017-07-25 19:45:46
阅读次数:
195
datetime模块定义了下面这几个类: datetime.date:表示日期的类。常用的属性有year, month, day; datetime.time:表示时间的类。常用的属性有hour, minute, second, microsecond; datetime.datetime:表示日期 ...
分类:
编程语言 时间:
2017-07-24 16:19:26
阅读次数:
160
You are given several logs that each log contains a unique id and timestamp. Timestamp is a string that has the following format: Year:Month:Day:Hour: ...
分类:
其他好文 时间:
2017-07-23 15:19:44
阅读次数:
496