BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Gil_
Quartz | Level 8
Hi I have dataset with start time and endtine at eastern time I need to convert it to local time depending on the locatin. I use the zip code to determine timezone
Here is how data looks
State. Start time. Timezone
AZ. 01/01/2018 14:23:00. Mountain
End time
01/01/2018:15:23:00

How can I convert the time from eastern to central
The data goes horizontally..
Starttime. TIMEZONE
TX. 01/01/2018 14:23:00. CENTRAL
End time
01/01/2018:15:23:00
1 ACCEPTED SOLUTION

Accepted Solutions
LinusH
Tourmaline | Level 20
You could probably use the TIMEZONE system option together with the time zone offset function - tzoneoff(). I guess that you need to have your timezones in ISO format to make it work.

http://documentation.sas.com/?docsetId=nlsref&docsetTarget=n0px72paaaqx06n1ozps024j78cl.htm&docsetVe...
Data never sleeps

View solution in original post

1 REPLY 1
LinusH
Tourmaline | Level 20
You could probably use the TIMEZONE system option together with the time zone offset function - tzoneoff(). I guess that you need to have your timezones in ISO format to make it work.

http://documentation.sas.com/?docsetId=nlsref&docsetTarget=n0px72paaaqx06n1ozps024j78cl.htm&docsetVe...
Data never sleeps

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1829 views
  • 0 likes
  • 2 in conversation