In Javascript, given d=new Date() it might be the case that d.getHours()!=d.getUtcHours().
I can construct a Date object, giving the components explicitly
new Date (y, m, d, hrs, mins)
but if these components are UTC then I have a problem. From the docs
The UTC() method differs from the Date constructor in two ways.
Date.UTC() uses universal time instead of the local time.
Date.UTC() returns a time value as a number instead of creating a Date object.
How do I construct a Date object given UTC components?
 
     
     
     
    