Projekt

Allgemein

Profil

Feature #584

How to handle time_t

Von Maximilian Seesslen vor 5 Monaten hinzugefügt. Vor 5 Monaten aktualisiert.

Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
Zielversion:
-
Beginn:
12.11.2024
Abgabedatum:
% erledigt:

0%

Geschätzter Aufwand:
CS Zielversion:

Beschreibung

Can be controlled with "newlib-long-time_h" in meson.

Having 32bit:
  • Overflow 2038
Having 64bit:
  • Arithmetic code is quite big on 32bit machines.
  • Can not send them via TDT
Splitting to date(days) and time(seconds):
  • Don't use libc at all?
  • Ok for canrec; Only send day when it changed,
  • Easy to translate it to 64bit time_t
  • Analog to current implementation of date/time
32Bit, different starting point:
  • delaying the problem; range is 68 years

Historie

#1

Von Maximilian Seesslen vor 5 Monaten aktualisiert

  • Beschreibung aktualisiert (diff)
#2

Von Maximilian Seesslen vor 5 Monaten aktualisiert

  • Thema wurde von How to handle time_h zu How to handle time_t geändert
#3

Von Maximilian Seesslen vor 5 Monaten aktualisiert

  • Status wurde von Neu zu Erledigt geändert

Keep it 64 bit, optimize calculations like avoiding diff.

Auch abrufbar als: Atom PDF