Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

check if daylight saving time is in effect and if it is for how many hours

check if daylight saving time is in effect and if it is for how many hours  using -''

Using JavaScript, how can I check if Daylight Saving Time (DST) is in use at the moment, and if it is for how many hours?

This is a bit of my js code for which this is needed:

var secDiff=Math.abs(Math.round((utc_date-this.premiere_date)/1000));

I want to get the datetime in ago, but if the DST is in use then the dates are wrong for 1 hour, and that's my problem. I don't know how to check if the DST is in use or not.

How to get when daylight saving starts and ends? <--- I think that this could help me. Just can't find it.

asked Oct 13, 2015 by atulpariharmca
0 votes

Related Hot Questions

Government Jobs Opening