Hi
I'm also looking into this at the moment. I am working with date and time stamps, and want to round down to the nearest minute - this means I would like round down a number to the nearest increment of 60.
Currently I am using round(floor(timepart(a.update_dt)/60)*60, 1) .
Does anyone have a difference/better solution?
Using the intnx-function seems to be better:
data _null_;
d = datetime();
put d datetime.;
r = intnx('dtminutes', d, 0, 'B');
put r datetime.;
run;
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!
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: