Re: [PATCH] clock:_TOD_To_seconds(): Fix year 2514 overflow

2021-04-19 Thread Gedare Bloom
It is reasonable. Let's capture the analysis. I thought there was a place we had notes related to different time source overflows, but I can't find it quickly On Mon, Apr 19, 2021 at 9:44 AM Sebastian Huber wrote: > > On 13/04/2021 18:03, Sebastian Huber wrote: > > > Hello, > > > > On 08/04/2021

Re: [PATCH] clock:_TOD_To_seconds(): Fix year 2514 overflow

2021-04-19 Thread Sebastian Huber
On 13/04/2021 18:03, Sebastian Huber wrote: Hello, On 08/04/2021 15:41, Frank Kuehndel wrote: +/** + *  @brief Latest year to which a time of day can be initialized. + * + *  The following constant defines the latest year to which an + *  RTEMS time of day can be set using rtems_clock_set().

Re: [PATCH] clock:_TOD_To_seconds(): Fix year 2514 overflow

2021-04-13 Thread Sebastian Huber
Hello, On 08/04/2021 15:41, Frank Kuehndel wrote: +/** + * @brief Latest year to which a time of day can be initialized. + * + * The following constant defines the latest year to which an + * RTEMS time of day can be set using rtems_clock_set(). + * + * 32 bits can accept as latest point in