The dateTimeLib.currentTimeStamp() system function retrieves the current system time and date as a timestamp in twenty-digit format ("yyyyMMddHHmmssffffff").
The precision of the this function is limited to the precision of the timer in the runtime environment. For example, Java™ environments return the current timestamp to the nearest millisecond, so the most precise timestamp available in a Java environment will have 17 significant digits and three trailing zeros, such as 20070101142020123000.
dateTimeLib.currentTimeStamp( )
returns (result TIMESTAMP("yyyyMMddHHmmssffffff"))
myTime1 DATE = currentTimestamp();
writeStdOut(myTime1);
myTime2 TIME = currentTimestamp();
writeStdOut(myTime2);
writeStdOut(currentTimestamp());
12/8/06
2:07 PM
2006-12-08 14:07:42.950000