Kris Roberts · Dec 12, 2023 go to post

One more question Rich,

I tried reading the %Libraray.PosixTime class information.  I thought that the PosixTime was the days in seconds since Jan 1, 1970 but I think I am missing something.  The PosixTime is in seconds so I was thinking I could....

  • take a time stamp and convert it to a PosixTime
  • an then for an Timezone offset (for example America/New_York would be -05:00) convert it to seconds  -1800
  • add the -1800 to the PosixTime
  • an then convert PosixTime to time stamp - shouldn't the time stamp show a lot more of a difference?  
  • and then convert the PosixTime back to a time stamp and shouldn't it show the timestamp a lot less  than 18 seconds?

    see below 

Starting a cold or something so my mind might not be thinking clearly.

Thanks

Kris Roberts · Dec 11, 2023 go to post

Thanks I can't use the $ZTZ to change the UTC.  The server is going to have traffic from many different locations so can't change the server setup.

Kris Roberts · Dec 11, 2023 go to post

Correct $H does not have a timezone, however I didn't explain it well that when we figure out the pickup date/time for a pharmacy we would have the timeszone the pharmacy resides in.
So if we figure out the pickup date/time in the $H I then need to convert it to a UTC but for a particular timezone not the locale timezone.
Thanks,