Greeting SAS nation
I’m trying to figure out how you get the result 1546387200 in the link below. I understand how you calculated 1640995200 as that’s the number of seconds from Jan 1 1960 to Jan 1 2012 but the other number is a little confusing.
Thanks
I suggest to provide feedback to the writers of the documentation. Use the feedback "button" in the top right corner for this.
Hi @arcacha
It is a typing error in the documentation, or maybe a half finished update, because it is not true that 1640995200 and 1546387200 both formats to 01jan12 with the datetime format. The lower number is Jan 1. 2009.
157 data _null_; 158 a = 1640995200; 159 put a datetime.; 160 a = 1546387200; 161 put a datetime.; 162 run; 01JAN12:00:00:00 01JAN09:00:00:00
I suggest to provide feedback to the writers of the documentation. Use the feedback "button" in the top right corner for this.
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!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.