Checkpoint

Z Wiki
Verze z 15. 7. 2020, 10:54, kterou vytvořil SamiecK (diskuse | příspěvky) (Založena nová stránka s textem „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 seco…“)
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

Volba časového pásma (0=lokální, 1=UTC).

CheckpointId

String type

Identifikátor, pod kterým bude uložena časová značka.

Mode

Number type

Režim stopek (0=start, 1=mezičas, 2=stop a start).

Enabled

Number type

Povoluje nebo zakazuje příkaz. Při hodnotě 0 nebude příkaz proveden.

PreWait

Number type

Prodleva v milisekundách před provedením příkazu. Nemá žádný vliv je-li Enabled=0.

PostWait

Number type

Prodleva v milisekundách po provedení příkazu. Nemá žádný vliv je-li Enabled=0.

Výstupní parametry

Timestamp

String type

Výsledný datum a čas posunutý o hodnotu parametru Shift ve formátu určeném parametrem Format.

Time

Number type

Počet milisekund uplynulých od posledního startu stopek.

Viz také

Příklady použití