Re: Timezone for datetime.date objects

2022-03-06 Thread Morten W. Petersen
On Wed, Mar 2, 2022 at 6:20 PM Peter J. Holzer wrote: > On 2022-02-28 23:28:23 +0100, Morten W. Petersen wrote: > > Well, let's say I specify the datetime 2022-02-22 02:02 (AM). I think > > everyone could agree that it also means 2022-02-22 02:02:00:00, to > > 2022-02-22 02:02:59:59. > > I disagr

Re: Timezone for datetime.date objects

2022-03-02 Thread Peter J. Holzer
On 2022-02-28 23:28:23 +0100, Morten W. Petersen wrote: > Well, let's say I specify the datetime 2022-02-22 02:02 (AM). I think > everyone could agree that it also means 2022-02-22 02:02:00:00, to > 2022-02-22 02:02:59:59. I disagree. The datetime 2022-02-22 02:02 specifies a point in time, not a

Re: Timezone for datetime.date objects

2022-03-01 Thread Chris Angelico
On Tue, 1 Mar 2022 at 22:52, Morten W. Petersen wrote: > Yep. Well, as I said, I could create some range objects myself, and even > create a little module and put it up on pypi, if I couldn't find any existing > module I could use. > > As we're discussing this, it is clear that different point

Re: Timezone for datetime.date objects

2022-02-28 Thread Chris Angelico
On Tue, 1 Mar 2022 at 09:28, Morten W. Petersen wrote: > > Hi Chris, Cameron. > > Well, let's say I specify the datetime 2022-02-22 02:02 (AM). I think > everyone could agree that it also means 2022-02-22 02:02:00:00, to 2022-02-22 > 02:02:59:59. > Not sure how many :59s you want there :) I'm g

Re: Timezone for datetime.date objects

2022-02-28 Thread Morten W. Petersen
Hi Chris, Cameron. Well, let's say I specify the datetime 2022-02-22 02:02 (AM). I think everyone could agree that it also means 2022-02-22 02:02:00:00, to 2022-02-22 02:02:59:59. And I think the same applies for a date. If the pipes are clogged and I can't take (give) a shit, a shower or do anyt

Re: Timezone for datetime.date objects

2022-02-27 Thread Chris Angelico
On Mon, 28 Feb 2022 at 08:51, Cameron Simpson wrote: > > On 27Feb2022 11:16, Morten W. Petersen wrote: > >I was initially using the date object to get the right timespan, but > >then > >found that using the right timezone with that was a bit of a pain. So I > >went for the datetime object instea

Re: Timezone for datetime.date objects

2022-02-27 Thread Cameron Simpson
On 27Feb2022 11:16, Morten W. Petersen wrote: >I was initially using the date object to get the right timespan, but >then >found that using the right timezone with that was a bit of a pain. So I >went for the datetime object instead, specifying 0 on hour, minute and >second. > >What's the thinki