Share this page

# web_save_timestamp_param

Correlation Functions for C

Saves the current timestamp.

    int web_save_timestamp_param( const char *tmstampParam, LAST );

Argument | Description
--- | ---
tmstampParam | The name of the parameter in which to store the timestamp.

## Return Values

This function returns LR_PASS (0) on success, and LR_FAIL (1) on failure.

## Parameterization

Parameterization is not applicable to this function.

## General Information

web_save_timestamp_param saves the current local timestamp of the computer running the script. In some applications, VuGen replaces all non-empty timestamps in the script with a parameter. To save the value of this parameter, VuGen automatically generates a call to web_save_timestamp_param. The value saved is the number of milliseconds since midnight January 1st, 1970.

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

In general, a user will not manually enter this function. For more information about handling time, see Date and Time Functions

Function lr_save_timestamp is can be used in any C-language script. With lr_save_timestamp you can also specify the size of the returned value. For example, you can request seconds resolution instead of millisecond resolution.

## Example

In this example, the current timestamp is saved to parameter "tStamp".

Copy code

    web_save_timestamp_param("tStamp", LAST );
    lr_output_message(lr_eval_string("Timestamp: {tStamp}"));

    // Output: Action.c(4): Timestamp: 1416227868606

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: