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.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.