Utility Functions and C Language Reference > Utility Functions: C Language (lr_) > Alphabetical Listing > lr_save_timestamp


Saves the current time in a parameter.

C Language

int lr_save_timestamp( const char* tmstampParam, [DIGITS,] LAST );
Example: lr_save_timestamp String and Parameter Functions


Name Comments
tmstampParam The name of the parameter to store the timestamp.

Optional. The number of digits for the timestamp (integer). The default is 13. With DIGITS=13, the resolution is epoch time including milliseconds. The milliseconds are the last three digits.
With DIGITS=10, the resolution is in seconds.

If the value of DIGITS is less than 1 or more than 16, the default is used

lr_save_timestamp saves the current local timestamp of the computer running the script.

The timestamp cannot be stored as an integer or long integer.

Return Values

Returns LR_PASS (0) on success. Non-zero return value indicates failure.


You cannot use standard parameterization for any arguments in this function.