Manik Bafna wrote:

> > Either your "touch" command is broken or you live somewhere with a
> > fractional timezone.  sanity.sh does:
> >
> >         touch 1225180134 cdir/cfile
> >
> > Which should set the timestamp of that file to 2034/12/25 18:01:34 in
> > your local time.  It then expects the corresponding UTC time to be some
> > date between 2034/12/24 and 2034/12/26, any hour, any seconds (many
> > touch commands don't set the seconds correctly), but it expects the
> > minutes to be exactly 01, whereas your system has 31.
> >
>
> Right I'm +5.30 hours ahead of UTC so 18:01-05:30 = 12:31
> But how do I select a different time zone in Linux Redhat 6.2

'TZ=UTC0; export TZ' or the like may work.  I had to hit a lot of man pages last
time I tried to solve that one and I don't remember having much luck.

Larry, unfortunately, 'date +%z' doesn't appear to be portable, but 'date -u' is
defined to return UTC by SUS2.  Any objections to something like 'expr abs\(`date
+%M` - `date -u +%M`\)/10' to grab the minute differential?

We could probably get the hours exact this way too with a little bit of effort.
I don't know if that's important to this particular test.

Derek

--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:[EMAIL PROTECTED]         CollabNet ( http://collab.net )
--
I don't suffer from stress.  I'm a carrier.
        - Scott Adam's _Dilbert_




_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to