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: 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 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

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