4
$\begingroup$

Is there an option or method to lock TimeZone in TimeObjects? For example,

TimeObject[List[16, 22, 0.`], Rule[TimeZone, 0]] + 
  Quantity[1, "Seconds"] // FullForm

TimeObject[List[9,22,1.],Rule[TimeZone,-7.]]

There is no way to set TimeZone->Missing[], which is more appropriate for some tasks.

For example if the time zone when data was captured is unknown, Mathematica will still impute a TimeZone at the point of analysis, which also changes with Daylight Savings Time etc.

Merge, GroupBy and many operations used in data use exact equi-match semantics, resulting in no match with the same time but different TimeZones.

As per b.gatessucks, apparently this issue affects OSX only.

$\endgroup$
  • $\begingroup$ I get TimeObject[List[16,22,1.],Rule[TimeZone,0.]], same as with DatePlus[TimeObject[List[16,22,0.],Rule[TimeZone,0]], {1, "Seconds"}]`. $\endgroup$ – b.gates.you.know.what Mar 15 '18 at 18:14
  • $\begingroup$ @b.gatessucks, 11.3? $\endgroup$ – alancalvitti Mar 15 '18 at 18:21
  • $\begingroup$ Yes 11.3 indeed. $\endgroup$ – b.gates.you.know.what Mar 15 '18 at 23:14
  • $\begingroup$ @b.gatessucks, I'm on Mac High Sierra, you? $\endgroup$ – alancalvitti Mar 15 '18 at 23:20
  • $\begingroup$ Tried both Windows 7 and Linux (on wolframcloud). $\endgroup$ – b.gates.you.know.what Mar 16 '18 at 8:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.