On Thu, 7 Feb 2019, Riccardo (Jack) Lucchetti wrote:
On Thu, 7 Feb 2019, Allin Cottrell wrote:
>
> No, I was thinking of something along those lines myself. But I wonder if
> it might be more user-friendly to return a vector holding year, month, day,
> hour, minute, second. I guess it would be good to know what use people are
> likely to make of this facility.
I had thought about that too, but eventually I decided to go for something
you can base a simple inequality on, as in
if $now > 20191231
but of course I don't have strong preferences.
For that purpose I think it might be nice to return a 2-vector holding
time_t and epoch day. Then
if $now[1] > n
would have one-second resolution and
if $now[2] > n
would have one-day resolution, and now[2] could be passed directly to
isodate() or juldate().
Allin