Checkpoint

Z Wiki
Verze z 15. 7. 2020, 11:02, kterou vytvořil SamiecK (diskuse | příspěvky) (Založena nová stránka s textem „ Examples of use“)
Přejít na: navigace, hledání
Jiné jazyky:
English • ‎čeština

Description

Alias: CP

Saves the current date and time with the set shift, eventually the time measured in stopwatch mode.

The command detects the current date and time, shifts it by the value given by the Shift parameter and the result formatted according to the Format parameter saves to the Timestamp output parameter. The TimeZone parameter can be used to select whether to use local time or UTC. At the same time, this command can serve as a stopwatch to measure the response, where the time measured in milliseconds is stored in the output parameter Time. The Mode parameter defines the stopwatch action (start, split time, stop & start). The identifier CheckpointId allows to distinguish individual measurements performed in parallel.

Input parameters

Format

String type

Required date and time format (d=day number (1-31), dd=day number as 2 digits (01-31), m=month number (1-12), mm=month number as 2 digits (01-12), yy=year last 2 digits (00-99), yyyy=year as 4 digits (0000-9999), h=hour number (0-23), hh=hour number as 2 digits (00-23), n=minute number (0-59), nn=minute number as 2 digits (00-59), s=second number (0-59), ss=second number as 2 digits (00-59), z=milisecond number (0-999), zzz=milisecond number as 3 digits (000-999)).

Shift

String type

Current date and time shift in d h:n:s format (e.g. 0=current time, -7=a week ago, -1 12:00=one and half day back, 0 1:10:45=an hour 10 minutes and 45 seconds later).

TimeZone

Number type

Time zone selection (0=local, 1=UTC).

CheckpointId

String type

Timestamp identifier.

Mode

Number type

stopwatch mode. (0=start, 1=split time, 2=stop & start).

Enabled

Number type

Enables or disables the command. If the value is 0, the command will not be executed.

PreWait

Number type

Delay in milliseconds before executing the command. It has no effect if Enabled=0.

PostWait

Number type

Delay in milliseconds after executing the command. It has no effect if Enabled=0.

Output parameters

Timestamp

String type

The resulting date and time shifted by the value of the Shift parameter in the format specified by the Format parameter.

Time

Number type

The number of milliseconds since the last stopwatch started.

See also

Examples of use