[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1
From: |
Basil L. Contovounesios |
Subject: |
bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) |
Date: |
Sun, 09 May 2021 11:03:59 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Lars Ingebrigtsen <larsi@gnus.org> writes:
> "Basil L. Contovounesios" <contovob@tcd.ie> writes:
>
>> (unless (decoded-time-year time)
>> - (setf (decoded-time-year time) 0))
>> + (setf (decoded-time-year time) 1970))
>
> Sure; that makes as much sense as anything, but the doc string should
> perhaps mention it.
It already does:
The default value is based on January 1st, 1970 at midnight.
Can it be clarified further?
> (All the other defaults are as zero-ish as possible, and 1970 is used
> here only because of technical limitations.)
Is it worth mentioning in the docstring that 1970 is chosen to guarantee
portability, similar to the note in encode-time's docstring?
Thanks,
--
Basil
- bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)), Евгений Михайлов, 2021/05/08
- bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)), Basil L. Contovounesios, 2021/05/08
- bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)), Eli Zaretskii, 2021/05/09
- bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)), Basil L. Contovounesios, 2021/05/09
- bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)), Eli Zaretskii, 2021/05/09
- bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)), Basil L. Contovounesios, 2021/05/09
- bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)), Lars Ingebrigtsen, 2021/05/09
- bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)),
Basil L. Contovounesios <=
- bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)), Lars Ingebrigtsen, 2021/05/09
- bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)), Basil L. Contovounesios, 2021/05/09
- bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)), Eli Zaretskii, 2021/05/09
- bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)), Basil L. Contovounesios, 2021/05/09
- bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)), Eli Zaretskii, 2021/05/09
- bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)), Basil L. Contovounesios, 2021/05/09
bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)), Andreas Schwab, 2021/05/09
bug#48298:, Евгений Михайлов, 2021/05/11