Hi, I am using GIT_COMMIT_GET function to get the commit date from Github history log. Unfortunately it is giving me a wrong date (10 years old) and when I look at the documentation, this function returns a time starting from 1970: Time – the number of seconds since January 1st, 1970 As the SAS dates start from 01 Jan 1960, this is giving me a wrong date. Any idea how this can be fixed ? %let GITBranch=Your_Local_Repository; data work.x; format time1 datetime.; LENGTH COMMIT_ID AUTHOR_NAME AUTHOR_EMAIL MESSAGE PARENT_IDS TIME $ 1024; N = GIT_COMMIT_LOG("&GITBranch."); DO I=1 TO N; RC = GIT_COMMIT_GET(I,"&GITBranch.", "id", COMMIT_ID); RC = GIT_COMMIT_GET(I,"&GITBranch.", "author", AUTHOR_NAME); RC = GIT_COMMIT_GET(I,"&GITBranch.", "email", AUTHOR_EMAIL); RC = GIT_COMMIT_GET(I,"&GITBranch.", "message", MESSAGE); RC = GIT_COMMIT_GET(I,"&GITBranch.", "parent_ids", PARENT_IDS); RC = GIT_COMMIT_GET(I,"&GITBranch.", "time", TIME); Time1=TIME; output; END; RC = GIT_COMMIT_FREE("&GITBranch."); drop N I RC; run;
... View more