ClassMethod CreateTimestamp(pFilename As %String = "",
pSpec As %String = "")
As %String
Using the pFilename string as a starting point, incorporates the time stamp specifier provided in pSpec and returns the resulting string. The default time stamp specifier is %f_%Q where:
-
%f is the name of the data source, in this case the input filename
-
_ is the literal underscore character, which will appear in the output filename
-
%Q indicates ODBC format date and time
In substituting a value for the format code %f, InterSystems IRIS strips out any of the characters |,?,\,/,:,[,],<,>,&,,,;,NUL,BEL,TAB,CR,LF, replacing spaces with underscores (_), slashes (/) with hyphens (-), and colons (:) with dots (.).
For full details about time stamp conventions, see Time Stamp Specifications for Filenames in Configuring Productions.