Full date en fr : jeudi 17 octobre 2002 (mirc 6.03)

4/5 (8 avis)

Snippet vu 3 305 fois - Téléchargée 27 fois

Contenu du snippet

desolé y a rien a expliquer !!!!!!!!!!!!!!!!!!!!! voyez vous meme

Source / Exemple :


dateFR {
  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)
}

Conclusion :


1)ajouter ça dans vos alias
2)faites simplement "/echo -a $dateFR" et vous verez

si vous trouvez plus court ........................... bref vous savez quoi faire ! merci

A voir également

Ajouter un commentaire Commentaires
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
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)
}
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)
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
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

Vous n'êtes pas encore membre ?

inscrivez-vous, c'est gratuit et ça prend moins d'une minute !

Les membres obtiennent plus de réponses que les utilisateurs anonymes.

Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.

Le fait d'être membre vous permet d'avoir des options supplémentaires.