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 2024

innovate-wordmarks-white-horiz.png

SAS is headed back to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team.

Interested in speaking? Content from our attendees is one of the reasons that makes SAS Innovate such a special event!

Submit your idea!

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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