Checkpoint/en: Porovnání verzí
(Založena nová stránka s textem „ Number type“) |
(Založena nová stránka s textem „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…“) |
||
| Řádek 18: | Řádek 18: | ||
[[Special:MyLanguage/Datové typy#String | String]] type | [[Special:MyLanguage/Datové typy#String | 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)). | |
<span id="shift-"></span> | <span id="shift-"></span> | ||
Verze z 15. 7. 2020, 10:51
Obsah
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
Posun aktuálního času ve formátu d h:n:s (např. 0=aktuální čas, -7=o týden zpět, -1 12:00=o den a půl zpět, 0 1:10:45=o hodinu 10 minut a 45 sekund později).
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.