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

RE: Rsync and Timezones



When I echo 'date' into datetest.xyz, all I get out is "date" when I cat the
file.


> -----Original Message-----
> From: Robert Jones [mailto:rjo736 airmail net]
> Sent: Tuesday, June 26, 2001 1:46 PM
> To: redhat-list redhat com
> Subject: Re: Rsync and Timezones
> 
> 
> "Mikkel L. Ellertson" wrote:
> 
> > On Tue, 26 Jun 2001, Tanner, Robby wrote:
> >
> > > Ah ha.  That's good to know.  Thanks.
> > > So if one is using Unix file systems, rsync will function 
> irrespective of
> > > time zone as well?
> > >
> > > Cheers,
> > > Rob
> > >
> > >
> > Yes, because it is comparing the UTC timestamps, not the local time.
> > All utilities that display times convert the output to 
> local time.  Try
> > changing your TZ varable, and see what it does to the date 
> displayed by
> > utilities like ls or date.
> >
> > Mikkel
> 
> Or simply:
> 
> [rj localhost rj]$ echo `date` >datetest.xyz
> [rj localhost rj]$ ls -l datetest.xyz
> -rw-rw-r--   1 rj       rj             29 Jun 26 19:38 datetest.xyz
> [rj localhost rj]$ cat datetest.xyz
> Tue Jun 26 14:38:41 CDT 2001
> 
> (CDT is 5 hours behind GMT or UDT or Zulu or whatever)
> 
> --
> Immanuel doesn't pun, he Kant.
> 
>   2:42pm  up 120 days,  6:18,  5 users,  load average: 0.13, 
> 0.13, 0.10
> 
> 
> 
> 
> _______________________________________________
> Redhat-list mailing list
> Redhat-list redhat com
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 
 
============================================================================

This communication contains information intended only for the person(s) to
whom it is addressed.  Any unauthorized use, retention, disclosure, copying,
or other distribution of this communication or taking any action on its
contents is strictly prohibited.  If you have received this message in
error, please notify us immediately and delete this message without reading,
copying or forwarding it to anyone.





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