home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.suse      Suse is actually not that bad      138,051 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 137,404 of 138,051   
   William Unruh to William Unruh   
   Re: UTC Time Stamps For Files on Flash D   
   01 Dec 21 19:14:02   
   
   From: unruh@invalid.ca   
      
   To expand, all times on a Linux system are UTC. All file tins/dates are   
   UTC. When programs like date, or ls -l  deliver a user readable time to   
   the user, they send the UTC time to a subroutine, whichdetermines what   
   the relation between local time and UTC is and translate the UTC time to   
   localtime. Internally however, the system makes all comparisons etc with   
   UTC times not local times. Otherwise you could get problems. You hop on   
   a plane, fly over 2 timezones west and now the files would be out by 2   
   hrs into the future. Ie, it could find a bunch of files which all have a   
   time an hour or so in the future. The OS does NOT like that. It can   
   cause immense problems. Thus everything, except human reading, is in   
   UTC. If you take that usb stick and read it in Linux, the times   
   displayed will be the correct localtime since Linux will have translated   
   them from UTC to human time. If you read them on a Windows system set up   
   for localtime, it will read the times as localtime and they wil be out   
   by whatever the difference is between localtime and UTC.   
      
   Flying from Hawaii to Nauru for example you will find on Windows that   
   the files are all almost 24 hours in the future. Windows users will   
   probably just leave their timezone to Hawaii time zone, and put up with   
   it being 22 hours out. In Linux you just change the translation file   
   (/etc/localtime) using the  files in /etc/zoneinfo to the appropiate   
   one, and everything will work.All times will be displayed in Nauru   
   times, and the system will keep using UTC.   
      
      
   On 2021-12-01, William Unruh  wrote:   
   > On 2021-12-01, Paul R Schmidtbleicher  wrote:   
   >> This may be an offbeat topic . . .   
   >>   
   >> I move files between Tumbleweed Linux & Win 10 Desktops.  I am aware of   
   >> the differences in Linux RealTimeClock set to UTC and Windows RTC set to   
   >> local time.   
   >>   
   >> However, a file saved on the Linux operating system is appears to be   
   >> saved with a local time stamp.  When saved to a flashdrive, it is saved   
   >   
   > No, it is saved in UTC and your operating system interprets that into   
   > localtime via /etc/localtime.   
   >   
   >> with a UTC (-8 for me).  When transported to the Win 10 box it looked   
   >> like I worked on this file at c.3:00am) Linux operating system displays   
   >> the right time stamp, but adjusted by the operating system.  On the   
   >> Flashdrive it is saved at UTC time.   
   >>   
   >> QUESTION: Is there a way to set Dolphin (or whatever) to save a file on   
   >> an external drive at local time?   
   >   
   > Why not setup windows to use UTC?   
   >>   
   >> Paul   
   >>   
   >>   
   >>   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca