Chapter Contents

Previous

Next
DATETIME

DATETIME



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

Category: Date and Time


Syntax
Examples
See Also

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
TIME


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.