Sujet : Re: Heat Death of the Internet
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.miscDate : 02. May 2024, 15:46:30
Autres entêtes
Organisation : Stefan Ram
Message-ID : <calendar-20240502154541@ram.dialup.fu-berlin.de>
References : 1 2 3
Ben Collver <
bencollver@tilde.pink> wrote or quoted:
some of them the hard way. I used to calendar on a smartphone, and now
I have an Android device with a pre-installed app titled "Calendar".
This device has no internet connection. Recently, I wanted to start
the calendar to get the day of the week of a certain date
- but it refused to do anything without an internet connection!
Well, I also have Python on that device, so I should have written:
import datetime
datetime.datetime.strptime( '2024-05-02', '%Y-%m-%d' ).strftime( '%A' )
.