guile-user
[Top][All Lists]
Advanced

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

Re: timestamp


From: Ricardo Wurmus
Subject: Re: timestamp
Date: Sat, 12 Feb 2022 12:49:10 +0100
User-agent: mu4e 1.6.10; emacs 27.2

Hi adriano,

I’ve got no good answers as to “why” things are the way they are, but
the manual explains the range of these values:

> It seesm to be
>
> (tm:mon %3)
>
> This returns
>
> 11
>
> I expected 12 but ok, I recognize this kind of weirdness

 -- Scheme Procedure: tm:mon tm
 -- Scheme Procedure: set-tm:mon tm val
     Month (0-11).

> I'm unhappy with 
>
> (tm:year $3)
>
> This returns
>
> 120
>
> it's 2020
>
> Why would 120 represent 2020 ?

 -- Scheme Procedure: tm:year tm
 -- Scheme Procedure: set-tm:year tm val
     Year (70-), the year minus 1900.

I don’t know why this would be useful, but that’s what it is ¯\_(ツ)_/¯

-- 
Ricardo



reply via email to

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