bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EPOCHREALTIME does not behave correctly before 1970


From: Alex fxmbsw7 Ratchev
Subject: Re: EPOCHREALTIME does not behave correctly before 1970
Date: Sun, 22 Aug 2021 22:30:26 +0200

why disregard or invalid, mark 0 is that date, less is minus, .. all working

On Sun, Aug 22, 2021, 22:13 Chet Ramey <chet.ramey@case.edu> wrote:

> On 8/21/21 1:28 AM, Emanuele Torre wrote:
>
> > Bash Version: 5.1
> > Patch Level: 8
> > Release Status: release
> >
>
> > get_epochrealtime() casts tv.tv_sec (a time_t a.k.a. int) to unsigned
> > int causing EPOCHREALTIME to not behave correctly before the Unix Epoch.
>
> The definition is seconds since the Unix epoch. It's not surprising that it
> doesn't pay attention to dates before that.
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]