Metainformationen zur Seite

LBSystem::lox2epoch

$epochtime = lox2epoch([int $loxonetime]);


This function returns from a Loxone timestamp the Unix Epoch timestamp . 

LoxBerry 1.4.2

This function is available starting with LoxBerry V1.4.2. If you use that function, set this minimum version in your plugin.cfg.

Timezones

We haven't tested this function for every timezone and every set-up. On anomalies, please report the timezone of LoxBerry to the Core developers.

The Unix Epoch timestamp are the seconds from 1st January 1970, whereas the Loxone timestamp requires the seconds from 1st January 2009.

The Loxone timestamp can be displayed in a human-readable way on some Loxone blocks like the Status block, using the display key <v.u>.

Use this feature to calculate the Unix Epoch timestamp from a Loxone timestamp.

Usage

require_once "loxberry_system.php";
 
$loxone_time = 328279414;
$epochtime = lox2epoch($loxone_time);

See also