SASUnit Examples  Version 1.2
_sasunit_timestamp.sas File Reference

return a formatted timestamp string from a specified datetime value or from the current time. More...

Go to the source code of this file.

Detailed Description

return a formatted timestamp string from a specified datetime value or from the current time.

For instance, to show the current time in the SAS log:: %PUT %timestamp; The following call writes a specific datetime to the SAS log: %PUT %timestamp('01JAN2000:00:00:00'dt);

Parameters
dtinput datetime value or empty to use the current date and time.
Version
$Revision: 106 $
Author
$Author: b-braun $
Date
$Date: 2013-01-10 14:59:21 +0100 (Do, 10 Jan 2013) $
See Also
$HeadURL: https://svn.code.sf.net/p/sasunit/code/trunk/saspgm/sasunit/_sasunit_timestamp.sas $
Returns
timestamp in the form yyyy-mm-dd-hh-ss.sss

Definition in file _sasunit_timestamp.sas.