新西兰中国夏时制制的起止日期

js获得当前时区夏令时的发生和终止时间
&!doctype html&
&title&dst calculator&/title&
&script type=text/javascript&
function displaydstswitchdates()
var year = new date().getyear();
if (year & 1000)
year += 1900;
var firstswitch = 0;
var secondswitch = 0;
var lastoffset = 99;
// loop through every month of the current year
for (i = 0; i & 12; i++)
// fetch the timezone value for the month
var newdate = new date(date.utc(year, i, 0, 0, 0, 0, 0));
var tz = -1 * newdate.gettimezoneoffset() / 60;
// capture when a timzezone change occurs
if (tz & lastoffset)
firstswitch = i-1;
else if (tz & lastoffset)
secondswitch = i-1;
lastoffset =
// go figure out date/time occurences a minute before
// a dst adjustment occurs
var seconddstdate = finddstswitchdate(year, secondswitch);
var firstdstdate = finddstswitchdate(year, firstswitch);
if (firstdstdate == null && seconddstdate == null)
return 'daylight savings is not observed in your timezone.';
return 'last minute before dst change occurs in ' +
year + ': ' + firstdstdate + ' and ' +
function finddstswitchdate(year, month)
// set the starting date
var basedate = new date(date.utc(year, month, 0, 0, 0, 0, 0));
var changeday = 0;
var changeminute = -1;
var baseoffset = -1 * basedate.gettimezoneoffset() / 60;
// loop to find the exact day a timezone adjust occurs
for (day = 0; day & 50; day++)
var tmpdate = new date(date.utc(year, month, day, 0, 0, 0, 0));
var tmpoffset = -1 * tmpdate.gettimezoneoffset() / 60;
// check if the timezone changed from one day to the next
if (tmpoffset != baseoffset)
var minutes = 0;
changeday =
// back-up one day and grap the offset
tmpdate = new date(date.utc(year, month, day-1, 0, 0, 0, 0));
tmpoffset = -1 * tmpdate.gettimezoneoffset() / 60;
// count the minutes until a timezone chnage occurs
while (changeminute == -1)
tmpdate = new date(date.utc(year, month, day-1, 0, minutes, 0, 0));
tmpoffset = -1 * tmpdate.gettimezoneoffset() / 60;
// determine the exact minute a timezone change
if (tmpoffset != baseoffset)
// back-up a minute to get the date/time just
// before a timezone change occurs
tmpoffset = new date(date.utc(year, month,
day-1, 0, minutes-1, 0, 0));
changeminute =
minutes++;
// add a month (for display) since javascript counts
// months from 0 to 11
dstdate = tmpoffset.getmonth() + 1;
// pad the month as needed
if (dstdate & 10) dstdate = 0 +
// add the day and year
dstdate += '/' + tmpoffset.getdate() + '/' + year + ' ';
// capture the time stamp
tmpdate = new date(date.utc(year, month,
day-1, 0, minutes-1, 0, 0));
dstdate += tmpdate.totimestring().split(' ')[0];
&script type=text/javascript&
document.write(current date/time:
+ new date() + &br /&);
document.write(displaydstswitchdates());
: 更多网络编程信息请查看:当前位置:>>>>正文
2015年新西兰的公共假期及地区假期日期一览表
  最大的免费服务机构――联盟金牌留学专家李艳玲老师介绍,每年有11个公共假期(包含1个地区假期,即你所在地区独享的假期),每逢假期,学生休息,上班族可以带薪休假。如果公共假期或地区假期与周末相连时,就是新西兰人举家出游的大好日子,新西兰人通常管这种长周末叫做Long Weekend。
  2015新西兰公共假期
  01月01日星期四 元旦
  01月02日星期五 元旦翌日
  02月06日星期五 怀唐伊日
  04月03日星期五 复活节星期五
  04月06日星期一 复活节星期一
  04月27日星期一 澳新军团日
  06月01日星期一 女王生日
  10月26日星期一 劳动节
  12月25日星期五 圣诞节
  12月26日星期六 节礼日
  2015新西兰地区假期
  01月19日星期一 Wellington
  01月26日星期一 Auckland
  02月02日星期一 Nelson
  03月09日星期一 Taranaki
  03月23日星期一 Otago
  04月07日星期二 Southland
  09月28日星期一 Canterbury (South)
  10月23日星期五 Hawke‘s Bay
  11月02日星期一 Marlborough
  11月13日星期五 Canterbury
  11月30日星期一 Westland
  11月30日星期一 Chatham Islands
  值得一提的是,澳新军团日原本是4月25日,不过今年的4月25日是周六,由于2013年新西兰通过了《假期补休提案》,如果怀唐伊日和澳新军团日恰巧落在周末,那么居民们将得以在周一进行补休。所以今年澳新军团日的假期即为4月27日星期一。
  另外,4月5日星期日,新西兰夏时制结束。当天凌晨2点59分59秒过后,时间将从凌晨3点变回2点,即“可以多睡一小时”。届时,新西兰时间将比中国时间快四个小时。
本文共分2页
(一)360文章有大量转载的文章,仅代表作者个人观点,与360网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
(二)免费转载出于非商业性学习目的,文章版权归原作者所有。如有文章内容、版权等问题请在25日内与360联系。
(三) 360隶属于360教育集团旗下上海叁陆零教育投资有限公司(简称:叁陆零教育),我们提供零中介,并助免费增送、精品课程,均不收取任何费用。
&&[] 文章生成时间为: 16:30:05
热门留学国家:
更多关于的新闻
留学360专家答疑 - 让专家主动与你联系!
为了节省您的查找时间,请将您要找的信息填写在表格里,留下您的联系方式并提交,我们的顾问会主动与您联系。
姓  名:
当前学历:
所在地区:
联系电话:
意向国家:
指定专家:
提交内容:
新西兰院校关注排行榜
12345678910
新西兰院校图库
新西兰推荐院校
新西兰国立怀阿里奇理工学院是新西兰最大的国立理工学院...新西兰Unitec理工学院成立与1976年,当时被称作“卡琳顿...维特利亚国立理工学院是新西兰24所国立理工学院之一,她...拥有近百年历史的新西兰克赖斯特彻奇综合技术学院(Christ...梅西大学成立于1927年,由最初的一所农学院发展成为现在...奥克兰理工大学是新西兰最新的大学,其前身奥克兰技术学...
新西兰专业解读
新西兰留学热点介绍

我要回帖

更多关于 美国夏时制时间 的文章

 

随机推荐