Returns the current date and time of day as a SAS datetime value
Category: Date and Time
DATETIME ()
This example returns a SAS value that represents the number of seconds between January 1, 1960 and the current time:
when=datetime(); put when=;
Functions:
'DATE Function' on page 481
'TIME Function' on page 855