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,407 of 138,051   
   Carlos E. R. to William Unruh   
   Re: UTC Time Stamps For Files on Flash D   
   02 Dec 21 11:44:12   
   
   From: robin_listas@es.invalid   
      
   On 01/12/2021 20.14, William Unruh wrote:   
   > 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.   
      
      
   Yes, but there is a caveat. If the USB stick is formatted with a Windows   
   filesystem like FAT, timestamps are local time. And this breaks things.   
   You have to play with mount options.   
      
   --   
   Cheers,   
           Carlos E.R.   
      
   --- 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