2016年11月25日
摘要: package com.funo.timer;import java.util.Timer;public class MyTimer { public static void main(String[] args) { Timer timer =new Timer(); timer.schedule 阅读全文
posted @ 2016-11-25 21:41 guols 阅读(79) 评论(0) 推荐(0) 编辑
摘要: //本月1号0分0秒 Calendar cal = Calendar.getInstance(); //获取当前日期 cal.set(Calendar.HOUR_OF_DAY, 1);//设置当前时间的日期为1号 cal.set(Calendar.HOUR_OF_DAY, 0);//设置当前日期为0 阅读全文
posted @ 2016-11-25 21:39 guols 阅读(169) 评论(0) 推荐(0) 编辑
摘要: <div id="time" style="color: #96C2DD;</div> <script type="text/javascript"> setInterval(function(){ var time=new Date(); var year=time.getFullYear(); 阅读全文
posted @ 2016-11-25 10:54 guols 阅读(675) 评论(0) 推荐(0) 编辑