Communauté Eggdrop
Convertir une date du format anglais au format français - Version imprimable

+- Communauté Eggdrop (https://forum.eggdrop.fr)
+-- Forum : Eggdrop et TCL (https://forum.eggdrop.fr/forumdisplay.php?fid=8)
+--- Forum : Bouts de Scripts (https://forum.eggdrop.fr/forumdisplay.php?fid=17)
+--- Sujet : Convertir une date du format anglais au format français (/showthread.php?tid=1574)



Convertir une date du format anglais au format français - MenzAgitat - 06/01/2015

tcl
clock format [clock scan "Tue, 06 Jan 2015 5:30 pm"] -format "%a %d %b %Y %H:%M" -locale fr


Code :
Tcl: mar. 06 janv. 2015 17:30

tcl
clock format [clock scan "Tue, 06 Jan 2015 5:30 pm"] -format "%A %d %B %Y %H:%M" -locale fr


Code :
Tcl: mardi 06 janvier 2015 17:30

Voir ici pour les différents codes de format : http://wiki.eggdrop.fr/Strftime

Source : http://www.boulets.oqp.me/tcl/routines/tcl-toolbox-0006.html