BookmarkSubscribeRSS Feed
woo
Barite | Level 11 woo
Barite | Level 11

I have one numeric value (below) as time and description of the value is "in seconds since the epoch". 

would I able to convert it into hh:mm:ss? - Thanks.

 

1510949673

 

 

 
2 REPLIES 2
Reeza
Super User

Sounds like that’s a date time. Do you know what the date of 'epoch' is?

 

Try to apply the datetime format. If it shows a date and time you expect you can use TIMEPART to extract the relevant time portion. 

 

Proc print data =have;
Format variable datetime.;

Time_portion = timepart(variable);

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 2 replies
  • 821 views
  • 0 likes
  • 3 in conversation