Deutsch   English   Français   Italiano  
<ub87k0$1c5ej$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Dominique <zzz@aol.com>
Newsgroups: fr.comp.lang.python
Subject: Re: API, dict et interrogations...
Date: Sat, 12 Aug 2023 17:14:09 +0200
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <ub87k0$1c5ej$1@dont-email.me>
References: <ub7ej9$18ncg$1@dont-email.me>
 <64d799dc$0$6430$426a74cc@news.free.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 12 Aug 2023 15:14:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1582612c29dfbed60bf3fc51ac537ab6";
	logging-data="1447379"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18L+UiQOmVAjl/xIgbb8KfZmmsbWUuBN0A="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:eApRqu+OO98koFURCy3cdq0kecg=
In-Reply-To: <64d799dc$0$6430$426a74cc@news.free.fr>
Content-Language: fr
Bytes: 1414

Le 12/08/2023 à 16:40, yves a écrit :
> Le Sat, 12 Aug 2023 10:07:04 +0200, Dominique a écrit:
> 
>> date=str(datetime.date.today()).split('-')
>> date[0],date[1],date[2]=date[2],date[1],date[0]
> 
> On peut écrire ça comme ça, aussi :
> 
> import datetime
> 
> date=datetime.date.today().strftime("%d-%m-%Y")
> print(date)

Je ne connaissais pas. Merci Yves :)

-- 
Dominique
Esto quod es