[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [linux-team] code: day of week



> On 23-Apr-99 Pascal Bleser wrote:
> > Qqn aurait-il le code ou l'algorithme (C ou n'importe: c'est pour
> > faire un calendrier avec PHP) pour calculer le jour de la semaine
> > ŕ partir d'une date ?
> date -d 19990423 '+%a' -> Fri (c'est aujourd'hui Vendredi!)

Oui, merci, mais j'ai dit "l'algorithme" :)
C'est pour utiliser avec PHP, pas depuis un script ;))

OK, j'ai trouvé un truc assez simple (itératif), merci...

  -o)  Pascal Bleser        | UNIX *is* user friendly.
  /\\  C++/UNIX Development | It's just selective about
 _\_v  ATOS Payment Systems | who its friends are...
pbleser@atos-group.com---------------------------------
---------
This message was sent by Majordomo 1.94.3. Please repport problems to
manu@rtfm.be. If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.