I can convert a Date to a WallTime:
var wt = WallTime.UTCToWallTime(dt, "America/New_York")
I can convert a WallTime to a Date:
var dt = WallTime.WallTimeToUTC('America/New_York', 2013, 10, 7, 0, 0, 0, 0)
But how can I just represent a simple wall time? I would expect something like:
var wt = new WallTime('America/New_York', 2013, 10, 7, 0, 0, 0, 0);
(perhaps with an optional offset for resolving ambiguous wall times)
I want to be able to then take that wall time, get the offset in effect, display it with the correct name or abbreviation, etc.
I can convert a Date to a WallTime:
I can convert a WallTime to a Date:
But how can I just represent a simple wall time? I would expect something like:
(perhaps with an optional offset for resolving ambiguous wall times)
I want to be able to then take that wall time, get the offset in effect, display it with the correct name or abbreviation, etc.