FULL DATE EN FR : JEUDI 17 OCTOBRE 2002 (MIRC 6.03)

cs_Apoc Messages postés 16 Date d'inscription dimanche 20 octobre 2002 Statut Membre Dernière intervention 18 mai 2003 - 20 oct. 2002 à 23:46
Mauricelepoisson Messages postés 97 Date d'inscription mardi 24 janvier 2006 Statut Membre Dernière intervention 3 mai 2011 - 19 sept. 2008 à 17:58
Cette discussion concerne un article du site. Pour la consulter dans son contexte d'origine, cliquez sur le lien ci-dessous.

https://codes-sources.commentcamarche.net/source/14379-full-date-en-fr-jeudi-17-octobre-2002-mirc-6-03

Mauricelepoisson Messages postés 97 Date d'inscription mardi 24 janvier 2006 Statut Membre Dernière intervention 3 mai 2011 1
19 sept. 2008 à 17:58
zut la seconde ligne est en trop, j'ai raté le c/c de mon bloc-notes :p
Mauricelepoisson Messages postés 97 Date d'inscription mardi 24 janvier 2006 Statut Membre Dernière intervention 3 mai 2011 1
19 sept. 2008 à 17:55
/jour /say $jourFR
alias jour /say $jourFR

jourFr {
var %j = $asctime(dddd)
%j = $replace( %j ,Monday,Lundi,Tuesday,Mardi,Wednesday,Mercredi,Thursday,Jeudi,Friday,Vendredi,Saturday,Samedi,Sunday,Dimanche)
var %m = $asctime(mmmm)
%m = $replace( %m ,January,Janvier,February,Février,March,Mars,April,Avril,May,Mai,June,Juin,July,Juillet,August,Août,September,Septembre,October,Octobre,November,Novembre,December,Décembre,Mon,Lundi,Tue,Mardi,Wed,Mercredi,Thu,Jeudi,Fri,Vendredi,Sat,Samedi,Sun,Dimanche)
return 1,15Nous sommes le : %j $asctime(dd) %m $asctime(yyyy) et il est : $time
}
c'est vraiment pour chipoter là que j'ai fait ça lol :)
cs_Kolibot Messages postés 817 Date d'inscription mercredi 25 juin 2003 Statut Membre Dernière intervention 19 avril 2004
8 janv. 2004 à 18:03
Voici le mien :

alias alldate { tokenize 32 $replace($fulldate,Jan,Janvier,Feb,Février,Mar,Mars,Apr,Avril,May,Mai,Jun,Juin,Jul,Juillet,Aug,Août,Sep,Septembre,Oct,Octobre,Nov,Novembre,Dec,Décembre,Mon,Lundi,Tue,Mardi,Wed,Mercredi,Thu,Jeudi,Fri,Vendredi,Sat,Samedi,Sun,Dimanche) | return $1 $3 $2 $5 }

6/10
vizual Messages postés 17 Date d'inscription vendredi 4 octobre 2002 Statut Membre Dernière intervention 22 mars 2003
20 nov. 2002 à 21:37
oui tres lol mais c pas en french (fo dire ke khaled parle pas la langue qui nous est chere ! ......... personne n'est parfait lol)
p'tetre il y aura une option un jour
MaX1391 Messages postés 13 Date d'inscription mardi 19 novembre 2002 Statut Membre Dernière intervention 29 novembre 2002
20 nov. 2002 à 18:14
//echo $date
lol
C plus simple
vizual Messages postés 17 Date d'inscription vendredi 4 octobre 2002 Statut Membre Dernière intervention 22 mars 2003
21 oct. 2002 à 05:44
ouais c'est a chacun de voir mé c bien aussi merci !
(j'avais fait la base a vous de rajouter et de modifier selon vos gouts, lol)
cs_Apoc Messages postés 16 Date d'inscription dimanche 20 octobre 2002 Statut Membre Dernière intervention 18 mai 2003
20 oct. 2002 à 23:49
J'avais omis une erreur avec l'echo, donc voici le resultat sans faute :p (désolé)

/date /echo -a $dateFRecho
/dateall /say $dateFR

dateFRecho { /echo Nous sommes le :
if ($asctime(mmmm) January) { /var %m Janvier | goto j }
if ($asctime(mmmm) February) { /var %m Février | goto j }
if ($asctime(mmmm) March) { /var %m Mars | goto j }
if ($asctime(mmmm) April) { /var %m Avril | goto j }
if ($asctime(mmmm) May) { /var %m Mai | goto j }
if ($asctime(mmmm) June) { /var %m Juin | goto j }
if ($asctime(mmmm) July) { /var %m Juillet | goto j }
if ($asctime(mmmm) August) { /var %m Août | goto j }
if ($asctime(mmmm) September) { /var %m Septembre | goto j }
if ($asctime(mmmm) October) { /var %m Octobre | goto j }
if ($asctime(mmmm) November) { /var %m Novembre | goto j }
if ($asctime(mmmm) December) { /var %m Décembre | goto j }
:j
if ($asctime(dddd) monday) { /var %j Lundi | goto r }
if ($asctime(dddd) tuesday) { /var %j Mardi | goto r }
if ($asctime(dddd) wednesday) { /var %j Mercredi | goto r }
if ($asctime(dddd) thursday) { /var %j Jeudi | goto r }
if ($asctime(dddd) friday) { /var %j Vendredi | goto r }
if ($asctime(dddd) saturday) { /var %j Samedi | goto r }
if ($asctime(dddd) sunday) { /var %j Dimanche | goto r }
:r
return %j $asctime(dd) %m $asctime(yyyy)
}

dateFR { /say Nous sommes le :
if ($asctime(mmmm) January) { /var %m Janvier | goto j }
if ($asctime(mmmm) February) { /var %m Février | goto j }
if ($asctime(mmmm) March) { /var %m Mars | goto j }
if ($asctime(mmmm) April) { /var %m Avril | goto j }
if ($asctime(mmmm) May) { /var %m Mai | goto j }
if ($asctime(mmmm) June) { /var %m Juin | goto j }
if ($asctime(mmmm) July) { /var %m Juillet | goto j }
if ($asctime(mmmm) August) { /var %m Août | goto j }
if ($asctime(mmmm) September) { /var %m Septembre | goto j }
if ($asctime(mmmm) October) { /var %m Octobre | goto j }
if ($asctime(mmmm) November) { /var %m Novembre | goto j }
if ($asctime(mmmm) December) { /var %m Décembre | goto j }
:j
if ($asctime(dddd) monday) { /var %j Lundi | goto r }
if ($asctime(dddd) tuesday) { /var %j Mardi | goto r }
if ($asctime(dddd) wednesday) { /var %j Mercredi | goto r }
if ($asctime(dddd) thursday) { /var %j Jeudi | goto r }
if ($asctime(dddd) friday) { /var %j Vendredi | goto r }
if ($asctime(dddd) saturday) { /var %j Samedi | goto r }
if ($asctime(dddd) sunday) { /var %j Dimanche | goto r }
:r
return %j $asctime(dd) %m $asctime(yyyy)
}
cs_Apoc Messages postés 16 Date d'inscription dimanche 20 octobre 2002 Statut Membre Dernière intervention 18 mai 2003
20 oct. 2002 à 23:46
je l'ai un peu modifié :

/date /echo -a $dateFR
/dateall /say $dateFR

dateFR { /echo Nous sommes le :
if ($asctime(mmmm) January) { /var %m Janvier | goto j }
if ($asctime(mmmm) February) { /var %m Février | goto j }
if ($asctime(mmmm) March) { /var %m Mars | goto j }
if ($asctime(mmmm) April) { /var %m Avril | goto j }
if ($asctime(mmmm) May) { /var %m Mai | goto j }
if ($asctime(mmmm) June) { /var %m Juin | goto j }
if ($asctime(mmmm) July) { /var %m Juillet | goto j }
if ($asctime(mmmm) August) { /var %m Août | goto j }
if ($asctime(mmmm) September) { /var %m Septembre | goto j }
if ($asctime(mmmm) October) { /var %m Octobre | goto j }
if ($asctime(mmmm) November) { /var %m Novembre | goto j }
if ($asctime(mmmm) December) { /var %m Décembre | goto j }
:j
if ($asctime(dddd) monday) { /var %j Lundi | goto r }
if ($asctime(dddd) tuesday) { /var %j Mardi | goto r }
if ($asctime(dddd) wednesday) { /var %j Mercredi | goto r }
if ($asctime(dddd) thursday) { /var %j Jeudi | goto r }
if ($asctime(dddd) friday) { /var %j Vendredi | goto r }
if ($asctime(dddd) saturday) { /var %j Samedi | goto r }
if ($asctime(dddd) sunday) { /var %j Dimanche | goto r }
:r
return %j $asctime(dd) %m $asctime(yyyy)
}


Presque rien, c'était juste pour que ce soie plus pratique.

/dateall affiche la date sur le channel
/date l'affiche en echo
Rejoignez-nous