Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
808 connectés 

  FORUM HardWare.fr
  Programmation

  La date sous Unix

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

La date sous Unix

n°16060
AirBg
The Philosopher
Posté le 27-02-2001 à 09:34:00  profilanswer
 

Sous Unix la commande date renvoie la date courante mais par défaut le mois est formaté en 3 caractères (exemple Feb pour février) Comment puis je faire pour récupérer le mois sous forme d'entier ?
 
Merci


---------------
"There's not such a thing as a stupid question, only stupid people..."
mood
Publicité
Posté le 27-02-2001 à 09:34:00  profilanswer
 

n°16062
zop
1 world, 1 web, 1 Windows
Posté le 27-02-2001 à 09:34:43  profilanswer
 

man date

n°16063
AirBg
The Philosopher
Posté le 27-02-2001 à 09:36:07  profilanswer
 

deja fait ca jy comprends rien  :gun:


---------------
"There's not such a thing as a stupid question, only stupid people..."
n°16069
Toxin
Carpe ★★ Vitam
Posté le 27-02-2001 à 09:47:18  profilanswer
 

Euh, AirBg tu suis quoi comme cursus ?
 
Il y a marqué (man SUN) : "+ format"
puis un exemple "date '+DATE: %m/%d...."
 
Donc un petit date '+%m' te renvoie 02.


---------------
"If you can walk away from a landing, it's a good landing. If you use the airplane the next day, it's an outstanding landing." - Chuck Yeager. | Ma chaîne YT
n°16071
AirBg
The Philosopher
Posté le 27-02-2001 à 09:50:44  profilanswer
 

Merci mais j'avais trouvé (c'est sous HP-UX mais c'est pareil) :D  
 
Pour ton info de mon cursus : je suis en licence miage apres avoir fait un DUT. J'ai posé ma question sur ce forum car j'ai la flemme de lire les manuels en anglais...


---------------
"There's not such a thing as a stupid question, only stupid people..."
n°16078
Toxin
Carpe ★★ Vitam
Posté le 27-02-2001 à 10:20:33  profilanswer
 

j'ai la flemme de lire les manuels en anglais...
 
Bon courage dans ta vie professionnelle alors.


---------------
"If you can walk away from a landing, it's a good landing. If you use the airplane the next day, it's an outstanding landing." - Chuck Yeager. | Ma chaîne YT
n°16079
AirBg
The Philosopher
Posté le 27-02-2001 à 10:23:50  profilanswer
 

T'en fais pas je bosse Hewlett Packard en tant qu'apprenti :)
 
et les langues ne sont pas un probleme (quand j'ai pas la flemme  :D )
 
A+ et merci


---------------
"There's not such a thing as a stupid question, only stupid people..."

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  La date sous Unix

 

Sujets relatifs
programmation système unixdate sous access
[Shell] - Traitement de la datehelp sur date en php!!!
[C/UNIX] Process et signaux[C/UNIX] Lire des fichiers .mid ou .wav
[C/UNIX] ualarm[C/UNIX] Problème de termcap
Date en JavaScript[Sondage/UNIX] Sondage n'est pas un langage :D
Plus de sujets relatifs à : La date sous Unix


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR