Operating System - HP-UX
1827294 Members
3133 Online
109717 Solutions
New Discussion

Re: Default date format on HPUX 11.0

 
Tixier Gilles
Occasional Contributor

Default date format on HPUX 11.0

How can i set default date format to dd/mm/yyyy
in french format date?
2 REPLIES 2
benoit Bruckert
Honored Contributor

Re: Default date format on HPUX 11.0

Hi,
by typing locale, you see all the VARIABLE which are linked to language.
by typing locale -a you have all the available langages.
For example for french :
fr_FR.iso88591
then to get the date in french :
$LC_TIME=fr_FR.iso88591
$export LC_TIME
test it with the date command :
$date
Mercredi 29 janvier 2003 17:04:32
which is in french .
To get dd/mm/yyyy then you have to format the output of the date command :
$date +'%d/%m/%Y'
29/01/2003

This is for the shell, if you want to use this with databases then you should see documentation about the name of the variable !

j'esp??re avoir ??t?? ?? peu pr??s clair dans l'explication...
Salutations et ?? la prochaine,
Benoit,
__________
"Une femme belle est le paradis des yeux, l'enfer de l'??me, et le purgatoire de la bourse."
Proverbe Estonien
Une application mal pansée aboutit à une usine à gaze (GHG)
James R. Ferguson
Acclaimed Contributor

Re: Default date format on HPUX 11.0

Hi:

I would add that if you only want the LC_TIME (or any other variable) to be changed only for the duration of a command, do this:

# LC_TIME=fr_FR.iso885915@euro date

...in which case the 'date' value is returned in French only for the 'date' command.

Regards!

...JRF...