Commands and functions
P.
180 of 349
Utc
Utctime
Utcconvert
Definition
●
function
utc
(
Zeit
)
Arguments
●
time
as string in format $
YYYY-MM-DD HH:MM:SS
$, data type c1400
Effect
●
Converts the time value in YYYY-MM-DD HH:MM:SS format back into a UTC-value. This
value is compatible to the Unix time stamp, this value is shown instead of seconds in
milliseconds.
Data type result (return)
●
u64
Definition
●
function
utctime
()
Arguments
●
none
Effect
●
Shows the number of elapsed milliseconds since 1970-01-01 00:00:00. This function is
compatible to the Unix time stamp.
Data type result (return)
●
u64
Definition
●
Function
utcconvert
(
utc
)
Arguments
●
utc
time in ms, data type u64
Effect
●
Converts the time specification from the utc format into a c1400 string format YYYY-MM-
DD HH:MM:SS.
Data type result (return)
●
string
Example: UTC Transformation
Conversion in the user program:
// Gibt aktuelle Zeitangabe im UTC-Format zurück
utcZeit=utctime()
// Convertiert UTC-Format in YYYY-MM-DD HH:MM:SS
DateTime=utcconvert(1364826122000u64)
// Wandelt 2012-09-03 20:00:17 in UTC-Format um
utcZ=utc($2012-09-03 20:00:17$)
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]