Pre-Pre-PEP: The datetime.timedeltacal class

Karsten Hilbert Karsten.Hilbert at gmx.net
Sat Apr 16 17:17:10 EDT 2022


Am Sat, Apr 16, 2022 at 07:35:51PM +0200 schrieb Peter J. Holzer:

> So I'll start by gathering some feedback
> here with a rough sketch.

> [TODO: Research how other systems handle overflow
> (e.g. 2022-01-31 + 1 month: 2022-02-31 doesn't exist)],

That is context dependant:

	Take this medication for 1 month !

is quite likely to mean "take it for 28 days".

	This standing order (Dauerauftrag) is to be run every
	months from now on.

will mean "every 1st of the month, regardless of how many
days passed".

Karsten
GNUmed
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B


More information about the Python-list mailing list