Re: Setting time

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

 



On Fri, 5 Sep 2003, Jesse Keating wrote:

> On Friday 05 September 2003 09:56, Pierre-Francois Honore wrote:
> > No matter the time zone. I think that internal time used is UTC. TZ
> > is just a user friendly feature for presentation.
> >
> > The reference of UNIX is : date -u
> 
> So a file that was created with a timezone setting of EST, then the user 
> sets the timezone to PST, wouldn't the file have a timestamp 3 hours in 
> the future, or would the timestamp change to reflect the timezone?  Is 
> the TRUE timestamp something different, and what ls et al show us is 
> the REAL timestamp filtered through a timezone adjustment?

Oh, Jesse Jesse, you can do better than that!

[summer@gw mail]$ date;touch /tmp/fred;\ls -l /tmp/fred; TZ=UTC \ls -l
/tmp/fred
Mon Sep  8 10:27:08 WST 2003
-rw-rw-r--    1 summer   summer          0 Sep  8 10:27 /tmp/fred
-rw-rw-r--    1 summer   summer          0 Sep  8 02:27 /tmp/fred
You have mail in /var/spool/mail/summer
[summer@gw mail]$

> 
> 

-- 
Please, reply only to the list.

Join the "Linux Support by Small Businesses" list at
http://mail.computerdatasafe.com.au/mailman/listinfo/lssb





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux