SASUnit Examples  Version 1.5.0
_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);

Version
$Revision: 315 $
Author
$Author: klandwich $
Date
$Date: 2014-02-28 10:25:18 +0100 (Fr, 28 Feb 2014) $
See Also
For further information please refer to SASUnit User's Guide
$HeadURL: https://svn.code.sf.net/p/sasunit/code/trunk/saspgm/sasunit/_timestamp.sas $
Parameters
dtinput datetime value or empty to use the current date and time.
Returns
timestamp in the form yyyy-mm-dd-hh-ss.sss

Definition in file _timestamp.sas.