- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Time zone conversion
I have data in the UTC time format. Can someone tell me how to convert this data to my local time (Pacific Standard Time)? Thanks,
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Time zone conversion
If your UTC time is 7:00 am so Pacific Standard Time will be 8 hours earlier....
names default to here(1);
UTCtime = informat("07:00:00", "h:m:s");
Pacific time = UTCtime - in hours(8);
show(UTCtime, format(Pacific time,"h:m:s"));
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Time zone conversion
Created:
Nov 10, 2020 02:41 AM
| Last Modified: Nov 9, 2020 11:54 PM
(2807 views)
| Posted in reply to message from txnelson 11-10-2020
Thanks for your response. A quick follow-up? Is there a solution that can accommodate time change (i.e., to daylight saving and back)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Time zone conversion
There is not a built in function for this. You will need to compensate for day light saving by checking on the date of the measurement in your JSL
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Time zone conversion
Good point. Historical measurements, converted to local time... Does not matter if you are currently in daylight or standard time.
You might want to consider converting your local time to UTC instead, depending on your audience.
Craige