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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

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