Projekt

Allgemein

Profil

Feature #691

Von Maximilian Seesslen vor etwa 11 Stunden aktualisiert

The timestamps via CAN are only 32bit.
On this channel the 'seconds since millenium' can be used. Zigbee is using this.

Unsigned 32bit integer would last till 2106. SIgned 32bit integer till 2038.

On 1.1.2000 the seconds since epoch have been 946684800, exactly 10957 days, 30 years.
4294967296 (2^32)
946684800

SECONDS_SINCE_EPOCH_MILLENNIUM
DAYS_SINCE_EPOCH_MILLENNIUM

Later an multiplicator of 'DAYS_SINCE_EPOCH_MILLENNIUM' could be used.

1970 2000 2038 2068 2136

Using unsigned 32bit-Integer from millennium will last to 2136.


Zurück