From: Emanuel Berg <moasenwood@zoho.eu>
To: ding@gnus.org
Subject: Re: how long is a temporary down score in effect?
Date: Mon, 14 Mar 2022 20:26:14 +0100 [thread overview]
Message-ID: <87o82849pl.fsf@zoho.eu> (raw)
In-Reply-To: <87v8wg4a0y.fsf@zoho.eu>
> However
>
> (- 738228 (days-since 0 0 0)) ; -397
>
> which doesn't make sense (temporary ban for a negative
> period of time - is it some other date?).
Okay, I see, no year 0 so it should be
(defun days-since (year month day)
(string-to-number
(format-seconds "%d"
(float-time (time-since (encode-time 0 0 0 day month year))) )))
;; (- 738228 (days-since 1 1 1)) ; 1
Okay, so a single day?! Well, better than negative three
hundred and ninety seven I guess! LOL
I also don't find where this is computed in the Gnus
source ...
--
underground experts united
https://dataswamp.org/~incal
next prev parent reply other threads:[~2022-03-14 19:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-14 19:19 Emanuel Berg
2022-03-14 19:26 ` Emanuel Berg [this message]
2022-04-06 16:36 ` Felix Dietrich
2022-04-06 22:18 ` Emanuel Berg
2022-04-07 5:09 ` Felix Dietrich
2022-04-07 5:20 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o82849pl.fsf@zoho.eu \
--to=moasenwood@zoho.eu \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).