from babel.datesimport format_date
importdatetime
d =datetime.date(1971,4,22)
d.strftime('%A, %d %B %Y')# 'Thursday 22 April 1971'
format_date(d, format='full',locale='fr_FR')# 'jeudi 22 avril 1971'
python/babel.txt · Dernière modification: 2023/09/23 13:17 par marclebrun