date is 02022001 not 02/02/2001 how to fix?

date is 02022001 not 02/02/2001 how to fix?

Post by cruth.. » Fri, 19 Jan 2001 11:25:55



Does anyone know a simple way to change the date format to have slashes
as date delimiters?
I have:
#locale -ck d_fmt
LC_TIME
d_fmt="%m%d%y"  <-----mmddyyyy

I need:
locale -ck d_fmt
LC_TIME
d_fmt="%m/%d/%y"  <--- mm/dd/yyyy

this is the current #locale
LANG=en_US
LC_COLLATE="en_US"
LC_CTYPE="en_US"
LC_MONETARY="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_MESSAGES="en_US"
LC_ALL=

...or does anyone know how to recomple (say with cc) a current locale
file with the date stanza changed to effect the above change?

f1n1:/root>locale -c LC_TIME
LC_TIME
"Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat"
"Sunday";"Monday";"Tuesday";"Wednesday";"Thursday";"Friday";"Saturday"
"Jan";"Feb";"Mar";"Apr";"May";"Jun";"Jul";"Aug";"Sep";"Oct";"Nov";"Dec"
"January";"February";"March";"April";"May";"June";"July";"August";"Septe
mber";"O
ctober";"November";"December"
%a %b %e %H:%M:%S %Z %Y
%m%d%y
%H:%M:%S
"AM";"PM"

%I:%M:%S %p

Sent via Deja.com
http://www.deja.com/

 
 
 

date is 02022001 not 02/02/2001 how to fix?

Post by Jose Pina Coelh » Sat, 20 Jan 2001 04:40:06



> Does anyone know a simple way to change the date format to have slashes
> as date delimiters?
> I have:
> #locale -ck d_fmt
> LC_TIME
> d_fmt="%m%d%y"  <-----mmddyyyy

> I need:
> locale -ck d_fmt
> LC_TIME
> d_fmt="%m/%d/%y"  <--- mm/dd/yyyy

> this is the current #locale
> LANG=en_US
> LC_COLLATE="en_US"
> LC_CTYPE="en_US"
> LC_MONETARY="en_US"
> LC_NUMERIC="en_US"
> LC_TIME="en_US"
> LC_MESSAGES="en_US"
> LC_ALL=

> ...or does anyone know how to recomple (say with cc) a current locale
> file with the date stanza changed to effect the above change?

Don't EVER change a standard locale file.  Some scripts set the LANG or
LC_TIME to get some expected parsable formats.  If you change it in the
locale files, those scripts will fail.

With LANG=en_US you should get the slashes, are you sure you have the en_US
locale installed ?

 
 
 

date is 02022001 not 02/02/2001 how to fix?

Post by cruth.. » Sat, 20 Jan 2001 06:31:07


Yes thanks for the input, LANG is set (see below) but node 5 is
differnt for some reason

sp1cws[/root]# dsh echo $LANG
f1n1: en_US
f1n3: en_US
f1n5: en_US
sp1cws[/root]# dsh locale -ck d_fmt
f1n1: LC_TIME
f1n1: d_fmt="%m/%d/%y"
f1n3: LC_TIME
f1n3: d_fmt="%m/%d/%y"
f1n5: LC_TIME
f1n5: d_fmt="%m%d%y"




> > Does anyone know a simple way to change the date format to have
slashes
> > as date delimiters?
> > I have:
> > #locale -ck d_fmt
> > LC_TIME
> > d_fmt="%m%d%y"  <-----mmddyyyy

> > I need:
> > locale -ck d_fmt
> > LC_TIME
> > d_fmt="%m/%d/%y"  <--- mm/dd/yyyy

> > this is the current #locale
> > LANG=en_US
> > LC_COLLATE="en_US"
> > LC_CTYPE="en_US"
> > LC_MONETARY="en_US"
> > LC_NUMERIC="en_US"
> > LC_TIME="en_US"
> > LC_MESSAGES="en_US"
> > LC_ALL=

> > ...or does anyone know how to recomple (say with cc) a current
locale
> > file with the date stanza changed to effect the above change?

> Don't EVER change a standard locale file.  Some scripts set the LANG
or
> LC_TIME to get some expected parsable formats.  If you change it in
the
> locale files, those scripts will fail.

> With LANG=en_US you should get the slashes, are you sure you have the
en_US
> locale installed ?

Sent via Deja.com
http://www.deja.com/
 
 
 

1. LILO booting error(L 02 02 02 02 02 - - - - )

I have a problem.
I want to set LILO correctly and multi booting.
1st hard disk - 5G linux.
2nd hard disk - 40G win2000

When settng linux, I made a floppy booting diskette.
Floppy booting is OK.

hda1 = /boot
hda2 = /
And set LILO(version 21) at MBR

lilo.conf file
===============================
boot = /dev/hda
map = /boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
default=linux
lba32

image=/boot/vmlinuz-2.4.2-3
    label=linux
    read-only
    root=/dev/hda1
    append="hdd=ide-scsi"
===============================

After booting, display message following.
L 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02
02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02
02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02

I got message's meaning at this site. but I don't know why.
http://metalab.unc.edu/pub/linux/system/boot/lilo/lilo-u-21.ps.gz

Another trying - after rewriting boot=/dev/fd0 in lilo.conf for floppy disk
booting.
-- then booting using floppy disk. I had a the same message.

Why get this error?
Please ...

2. DES and MD5 encryption

3. LILO hangs with "02 02 02..." message

4. About SIGBUS

5. Deadline Extension: Federated Conference 2002 (DOA'02, ODBASE'02, CoopIS'02)

6. PLIP

7. How to find whether Solaris 8(02/04) or Solaris 8(02/02) ?

8. Ethernet / PPP Conlict???

9. Linux Advisory Watch - Feb 02, 2001

10. Solaris 02/02 Companion CD Questions KDE and Gnome

11. LILO hangs with "L02 02 02..." message

12. Sol8 (i86pc,02/02) install fails CD2 (regression from 10/00)!!

13. Solaris 8 02/02