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

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 1626 views
  • 0 likes
  • 2 in conversation