Project

General

Profile

Feature #691

Specify timestamps

Added by Maximilian Seesslen 4 months ago. Updated 4 months ago.

Status:
Neu
Priority:
Normal
Target version:
Start date:
09/23/2025
Due date:
% Done:

0%

Estimated time:
CS Zielversion:

Description

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
  |<--------------->|                          SINT32
           |<--------------->|                 SINT32
           |<------------------------>|        UINT32

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

Links

History

#1

Updated by Maximilian Seesslen 4 months ago

  • Description updated (diff)
#2

Updated by Maximilian Seesslen 4 months ago

  • Assignee set to Maximilian Seesslen
  • Target version set to v0.3.0
#3

Updated by Maximilian Seesslen 4 months ago

  • Description updated (diff)
#4

Updated by Maximilian Seesslen 4 months ago

  • Description updated (diff)
#5

Updated by Maximilian Seesslen 4 months ago

  • Description updated (diff)

Also available in: Atom PDF