BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
arcacha
Fluorite | Level 6

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

https://documentation.sas.com/doc/en/vdmmlcdc/8.1/leforinforref/p1hsn1ji141r4zn0z3xm2dthop6a.htm#n0t...

1 ACCEPTED SOLUTION

Accepted Solutions
BrunoMueller
SAS Super FREQ

I suggest to provide feedback to the writers of the documentation. Use the feedback "button" in the top right corner for this.

Bruno_SAS_0-1625555148232.png

 

View solution in original post

3 REPLIES 3
ErikLund_Jensen
Rhodochrosite | Level 12

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

 

arcacha
Fluorite | Level 6
Categorization: Unclassified

Thanks @ErikLund_Jensen



Yeah I though there was something amiss here. Hopefully the error can be corrected.



Cheers


BrunoMueller
SAS Super FREQ

I suggest to provide feedback to the writers of the documentation. Use the feedback "button" in the top right corner for this.

Bruno_SAS_0-1625555148232.png

 

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!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 692 views
  • 1 like
  • 3 in conversation