DATETIME Function


Returns the current date and time of day as a SAS datetime value

Category: Date and Time

Syntax

DATETIME ()

Examples

This example returns a SAS value that represents the number of seconds between January 1, 1960 and the current time:

 when=datetime();  put when=; 

See Also

Functions:

  • 'DATE Function' on page 481

  • 'TIME Function' on page 855




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net