[Top][All Lists]
[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 <address@hidden> writes:
> Mark D. Baushke wrote:
>
> > address@hidden mdb]$ export TZ=Asia/Calcutta address@hidden mdb]$ date Fri
> > Apr
> > 15 07:01:59 2005
>
>
> ...
>
> > address@hidden mdb]$ TZ=Pacific/Honolulu date Fri Apr 15 07:07:12
> > 2005 address@hidden 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...
>
> address@hidden ccvs-merge]$ date +%Z
> EDT
> address@hidden ccvs-merge]$ TZ=Asia/Calcutta date +%Z
> IST
> address@hidden ccvs-merge]$ TZ=Asia/Garbage date +%Z
> Asia/Garbage
> address@hidden ccvs-merge]$
>
>
> I could write a simple test and skip the TZ dependent tests when
> `TZ=REGION/CITY date +%Z` = "REGION/CITY".
address@hidden mdb]$ date +%Z
MET
address@hidden mdb]$ TZ=Asia/Calcutta date +%Z
address@hidden mdb]$ TZ=Asia/Garbage date +%Z
address@hidden mdb]$ AAA=`TZ=Asia/Garbage date +%Z`;echo "'$AAA'"
' '
address@hidden mdb]$ AAA=`TZ=Asia/Calcutta date +%Z` ; echo "'$AAA'"
' '
address@hidden mdb]$ AAA=`TZ=Asia/Calcutta date +%Z` ; echo "'$AAA'" > i
address@hidden mdb]$ od i
0000000000000 023440 020040 023412
0000000000006
address@hidden mdb]$ AAA=`TZ=Asia/Garbage date +%Z`; echo "'$AAA'" > i
address@hidden mdb]$ od i
0000000000000 023440 020040 023412
0000000000006
address@hidden mdb]$ AAA=`date +%Z`; echo "'$AAA'" > i
address@hidden mdb]$ od i
0000000000000 023515 042524 023412
0000000000006
address@hidden mdb]$ cat i
'MET'
address@hidden mdb]$ uname -a
sn5176 sn5176 9.0.2.2 sin.0 CRAY Y-MP
address@hidden 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-----
- get_date returning false, Ian Abbott, 2005/04/07
- Re: get_date returning false, Derek Price, 2005/04/07
- Re: get_date returning false, Ian Abbott, 2005/04/08
- Re: get_date returning false, Derek Price, 2005/04/08
- Re: get_date returning false, Ian Abbott, 2005/04/08
- Re: get_date returning false, Derek Price, 2005/04/08
- Message not available
- Re: get_date returning false, Derek Price, 2005/04/08
- Re: get_date returning false, Mark D. Baushke, 2005/04/15
- Re: get_date returning false, Derek Price, 2005/04/15
- Re: get_date returning false,
Mark D. Baushke <=
- Re: get_date returning false, Derek Price, 2005/04/15
- Re: get_date returning false, Mark D. Baushke, 2005/04/15
- Re: get_date returning false, Derek Price, 2005/04/08
- Re: get_date returning false, Ian Abbott, 2005/04/08