bug-cvs
[Top][All Lists]
Advanced

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

Re: get_date returning false


From: Mark D. Baushke
Subject: Re: get_date returning false
Date: Fri, 15 Apr 2005 08:34:38 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Derek Price <derek@ximbiot.com> writes:

> Mark D. Baushke wrote:
> 
> > [mdb@yel mdb]$ export TZ=Asia/Calcutta [mdb@yel mdb]$ date Fri Apr
> > 15 07:01:59 2005
> 
> 
> ...
> 
> > [mdb@yel mdb]$ TZ=Pacific/Honolulu date Fri Apr 15 07:07:12
> > 2005 [mdb@yel mdb]$
> >
> > That said, I doubt if this will be a big problem given that CRAY
> > doesn't yet support client/server as I have only been able to get
> > :local: to work on it.
> 
> 
> Hrm.  Does the Cray exhibit similar behavior to the following for
> unrecognized time zones?  The POSIX spec doesn't really seem to specify...
> 
>     [oberon@courage ccvs-merge]$ date +%Z
>     EDT
>     [oberon@courage ccvs-merge]$ TZ=Asia/Calcutta date +%Z
>     IST
>     [oberon@courage ccvs-merge]$ TZ=Asia/Garbage date +%Z
>     Asia/Garbage
>     [oberon@courage ccvs-merge]$
> 
> 
> I could write a simple test and skip the TZ dependent tests when
> `TZ=REGION/CITY date +%Z` = "REGION/CITY".

[mdb@yel mdb]$ date +%Z
MET
[mdb@yel mdb]$ TZ=Asia/Calcutta date +%Z
   
[mdb@yel mdb]$ TZ=Asia/Garbage date +%Z
   
[mdb@yel mdb]$ AAA=`TZ=Asia/Garbage date +%Z`;echo "'$AAA'"
'   '
[mdb@yel mdb]$ AAA=`TZ=Asia/Calcutta date +%Z` ; echo "'$AAA'"
'   '
[mdb@yel mdb]$ AAA=`TZ=Asia/Calcutta date +%Z` ; echo "'$AAA'" > i
[mdb@yel mdb]$ od i
0000000000000 023440 020040 023412
0000000000006
[mdb@yel mdb]$ AAA=`TZ=Asia/Garbage date +%Z`; echo "'$AAA'" > i
[mdb@yel mdb]$ od i
0000000000000 023440 020040 023412
0000000000006
[mdb@yel mdb]$ AAA=`date +%Z`; echo "'$AAA'" > i
[mdb@yel mdb]$ od i
0000000000000 023515 042524 023412
0000000000006
[mdb@yel mdb]$ cat i
'MET'
[mdb@yel mdb]$ uname -a
sn5176 sn5176 9.0.2.2 sin.0 CRAY Y-MP
[mdb@yel mdb]$ 

So, for unrecognized zones, three spaces are produced for the timezone
on the CRAY Y-MP system.

        -- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQFCX98N3x41pRYZE/gRAnG1AJ9Ic3A1ggXKAzk3tdS1NrokRYGnvACeMEDb
2JIXiXtjIiXZf8w8rNDFAM0=
=APyc
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]