<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://knowledge.pinon-hebert.fr/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Format_de_dates_python</id>
	<title>Format de dates python - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Format_de_dates_python"/>
	<link rel="alternate" type="text/html" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=Format_de_dates_python&amp;action=history"/>
	<updated>2026-05-19T11:57:31Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=Format_de_dates_python&amp;diff=925&amp;oldid=prev</id>
		<title>Jpinon : Page créée avec « == Convertir une date en chaîne == Plusieurs méthodes dont la plus souple me semble être: strftime  Exemple:     import datetime      maDate=datetime.datetimemaDate=datetime.datetime.today()     print (maDate.strftime(&#039;%Y/%m/%d %H:%M:%S&#039;)) Donne quelque chose du style     2009/03/06 14:07:58 Les formats possibles sont:    %a   Locale’s abbreviated weekday name.    %A   Locale’s full weekday name.    %b   Locale’s abbreviated month name.    %B   Locale’... »</title>
		<link rel="alternate" type="text/html" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=Format_de_dates_python&amp;diff=925&amp;oldid=prev"/>
		<updated>2025-02-27T21:37:07Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « == Convertir une date en chaîne == Plusieurs méthodes dont la plus souple me semble être: strftime  Exemple:     import datetime      maDate=datetime.datetimemaDate=datetime.datetime.today()     print (maDate.strftime(&amp;#039;%Y/%m/%d %H:%M:%S&amp;#039;)) Donne quelque chose du style     2009/03/06 14:07:58 Les formats possibles sont:    %a   Locale’s abbreviated weekday name.    %A   Locale’s full weekday name.    %b   Locale’s abbreviated month name.    %B   Locale’... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Convertir une date en chaîne ==&lt;br /&gt;
Plusieurs méthodes dont la plus souple me semble être: strftime&lt;br /&gt;
&lt;br /&gt;
Exemple:&lt;br /&gt;
    import datetime&lt;br /&gt;
&lt;br /&gt;
    maDate=datetime.datetimemaDate=datetime.datetime.today()&lt;br /&gt;
    print (maDate.strftime(&amp;#039;%Y/%m/%d %H:%M:%S&amp;#039;))&lt;br /&gt;
Donne quelque chose du style&lt;br /&gt;
    2009/03/06 14:07:58&lt;br /&gt;
Les formats possibles sont:&lt;br /&gt;
   %a   Locale’s abbreviated weekday name.&lt;br /&gt;
   %A   Locale’s full weekday name.&lt;br /&gt;
   %b   Locale’s abbreviated month name.&lt;br /&gt;
   %B   Locale’s full month name.&lt;br /&gt;
   %c   Locale’s appropriate date and time representation.&lt;br /&gt;
   %d   Day of the month as a decimal number [01,31].&lt;br /&gt;
   %f   Microsecond as a decimal number [0,999999], zero-padded on the left&lt;br /&gt;
   %H   Hour (24-hour clock) as a decimal number [00,23].&lt;br /&gt;
   %I   Hour (12-hour clock) as a decimal number [01,12].&lt;br /&gt;
   %j   Day of the year as a decimal number [001,366].&lt;br /&gt;
   %m   Month as a decimal number [01,12].&lt;br /&gt;
   %M   Minute as a decimal number [00,59].&lt;br /&gt;
   %p   Locale’s equivalent of either AM or PM.&lt;br /&gt;
   %S   Second as a decimal number [00,61].&lt;br /&gt;
   %U   Week number of the year (Sunday as the first day of the week) as a decimal number [00,53].&lt;br /&gt;
        All days in a new year preceding the first Sunday are considered to be in week 0.&lt;br /&gt;
   %w   Weekday as a decimal number [0(Sunday),6].&lt;br /&gt;
   %W   Week number of the year (Monday as the first day of the week) as a decimal number [00,53].&lt;br /&gt;
        All days in a new year preceding the first Monday are considered to be in week 0.&lt;br /&gt;
   %x   Locale’s appropriate date representation.&lt;br /&gt;
   %X   Locale’s appropriate time representation.&lt;br /&gt;
   %y   Year without century as a decimal number [00,99].&lt;br /&gt;
   %Y   Year with century as a decimal number.&lt;br /&gt;
   %z   UTC offset in the form +HHMM or -HHMM (empty string if the the object is naive).&lt;br /&gt;
   %Z   Time zone name (empty string if the object is naive).&lt;br /&gt;
   %%   A literal &amp;#039;%&amp;#039; character.&lt;/div&gt;</summary>
		<author><name>Jpinon</name></author>
	</entry>
</feed>