using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class Timer : MonoBehaviour {
int hour;
int minute;
int second;
int millisecond;
// 已经花费的时间
float t...
分类:
编程语言 时间:
2015-07-13 10:19:51
阅读次数:
358
1.用求模来计算时间,秒%60,就能获取剩余的秒var s = 362;var minute = parseInt(s/60) + "分" //取得分var second = s%60 + "秒" //取得秒var time = minute + second; ...
分类:
Web程序 时间:
2015-07-12 18:52:59
阅读次数:
164
Logmanhttps://technet.microsoft.com/en-us/library/bb490956.aspxhttp://blogs.technet.com/b/askperf/archive/2008/05/13/two-minute-drill-logman-exe.aspxh...
分类:
其他好文 时间:
2015-07-12 12:30:39
阅读次数:
112
1. MySQL 为日期增加一个时间间隔:date_add()
set @dt = now();
select date_add(@dt, interval 1 day); - 加1天
select date_add(@dt, interval 1 hour); -加1小时
select date_add(@dt, interval 1 minute); - 加1分钟
se...
分类:
数据库 时间:
2015-07-11 09:06:00
阅读次数:
165
linux命令之crontab@(linux_day_day_up)[LINUX]linux命令之crontab
crontab是用来设置周期性被执行的指令。
我们在linux中可用crontab -e来编辑crontab的配置文件以设定任务。
格式为:
minute(0-59) hour(0-23) day(1-31) month(1-12) week(0-6,0 stands for s...
分类:
系统相关 时间:
2015-07-10 16:40:31
阅读次数:
283
随手写的,项目中没用,不一定对,只作参考。--游戏时间相关函数local gt = {}local math = mathlocal ONE_MINUTE = 60local ONE_HOUR = ONE_MINUTE * ONE_MINUTElocal ONE_DAY = ONE_HOUR *.....
分类:
其他好文 时间:
2015-07-09 11:09:23
阅读次数:
216
正则表达式30分钟入门教程来园子之前写的一篇正则表达式教程,部分翻译自codeproject的The 30 Minute Regex Tutorial。由于评论里有过长的URL,所以本页排版比较混乱,推荐你到原处查看,看完了如果有问题,再到这里来提出.一些要说的话:如果你没有正则表达式的基础,请跟着...
分类:
系统相关 时间:
2015-07-02 01:05:11
阅读次数:
369
数据结构类似SQL> select * from t;B E N----------------- ----------------- --------------------20150106 01:00:02 20150106 01:00:42 A20150106 01:00:02 2015010...
分类:
数据库 时间:
2015-06-30 06:36:09
阅读次数:
184
INTERVAL DAY TO SECOND数据类型Oracle语法:INTERVAL '{ integer | integer time_expr | time_expr }'{ { DAY | HOUR | MINUTE } [ ( leading_precision ) ]| SECOND [...
分类:
数据库 时间:
2015-06-26 14:59:45
阅读次数:
170
//设置一天内的一个时间点
Calendarcal=Calendar.getInstance();
cal.set(Calendar.HOUR_OF_DAY,0);//设置一天中的某一消失
cal.set(Calendar.MINUTE,0);//设置分钟
cal.set(Calendar.SECOND,0);//设置秒
cal.set(Calendar.MILLISECOND,0);//设置毫秒
Timestamptime=newTim..
分类:
其他好文 时间:
2015-06-25 21:31:53
阅读次数:
171