时间在任何系统里都是最基本的部分,必不可少。本文介绍CentOS系统中与时间的相关命令。基本概念
硬件时钟(Hardware Clock)
硬件时钟,也叫实时时钟(RealTimeClock),或者BIOS时钟,或者CMOS时钟。它是位于机器主板上的实际硬件设备,一般靠电池维持运行。所以,即使机器关机,它也会一直保持记录当前时间,一般不是十分精确。
系统时间(System Time)
系统时间指...
分类:
其他好文 时间:
2015-06-03 21:35:56
阅读次数:
130
初学solr在schema 里面配置并使用sorl的date或者tdate类型,具体类型与使用如下: <field name="tdate_field"type="tdate"indexed="true"stored="true"/>
<field name="date_field"type="date"indexed="true"st...
分类:
其他好文 时间:
2015-06-03 17:53:30
阅读次数:
445
Insert title here hashMap = new HashMap(); for(String ID : TimeZone.getAvailableIDs()){ hashMap.put(ID, TimeZone.getTimeZone(ID)); } request.setAtt...
分类:
其他好文 时间:
2015-06-02 17:37:14
阅读次数:
119
Insert title here现在时刻:北京时间 GMT${ i>=12 ? '+' : '' }${ i-12 } : =12 ? '+' : '' }${ i-12 }">
分类:
其他好文 时间:
2015-06-02 17:32:13
阅读次数:
267
- (NSString *)calculateWeek:(NSDate *)date{
//计算week数
NSCalendar * myCalendar = [NSCalendar currentCalendar];
myCalendar.timeZone = [NSTimeZone systemTimeZone];
NSInteger week = [[myCa...
分类:
移动开发 时间:
2015-06-02 13:28:40
阅读次数:
137
一般我们在安装系统的时候,都会遇到服务器时间不同步的情况。所以必须得设置为中国时区,比较简单的方法,就总结如下几点:1.通过命令行启动图形界面更改#sysinstall请选择 configure请选择 Time ZoneUTC = no请选择 Asia请选择 China请选择 east China ...
分类:
其他好文 时间:
2015-06-02 13:11:58
阅读次数:
182
1、创建本地通知 UILocalNotification *local = [[UILocalNotification alloc] init]; 2、设置通知显示的时间 local.fireDate = [NSDate date]; 3、设置默认时区 local.timeZone = [...
分类:
移动开发 时间:
2015-05-30 10:41:05
阅读次数:
168
增加DNS服务器设置:/etc/resolv.confnameserver61.139.2.69调整时区:cp/etc/sysconfig/clock/etc/sysconfig/clock.bakvi/etc/sysconfig/clockZONE="Asia/Shanghai"cp/etc/localtime/etc/localtime.bakln-sf/usr/share/zoneinfo/Asia/Shanghai/etc/localtimeservicentpdstopnt..
分类:
其他好文 时间:
2015-05-29 18:25:29
阅读次数:
163
Runtime 配置Date/Time 函数的行为受到 php.ini 中设置的影响:名称描述默认PHP 版本date.timezone规定默认时区(所有的 Date/Time 函数使用该选项)""PHP 5.1date.default_latitude规定默认纬度(date_sunrise() 和...
分类:
Web程序 时间:
2015-05-29 15:22:48
阅读次数:
148