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

Submit your idea!

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.

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
  • 3 replies
  • 636 views
  • 1 like
  • 3 in conversation