Difference between revisions of "Talk:Time"

From ArchWiki
Jump to: navigation, search
m (Local time adjustment applied twice by Windows and Arch: rm closed discussion)
(Session/user time: new discussion)
Line 9: Line 9:
  
 
--[[User:Indrora|Indrora]] ([[User talk:Indrora|talk]]) 05:58, 31 October 2012 (UTC)
 
--[[User:Indrora|Indrora]] ([[User talk:Indrora|talk]]) 05:58, 31 October 2012 (UTC)
 +
 +
== Session/user time ==
 +
 +
It would be nice to mention in this article that the time zone can also be set for a single command (e.g. for testing an application under development) or a shell session by setting the {{ic|TZ}} environment variable. If put in e.g. .bashrc it also allows setting the time zone for a specific user.
 +
 +
Then there are also ''faketime'' (from {{Pkg|libfaketime}}) and {{Pkg|datefudge}} for setting the time without touching the global settings, still for development/testing purposes.
 +
 +
At the moment I can't think of a good way to add these tips to the current article, which is kind of assuming that all the settings have to be global. Is there anybody with a good idea?
 +
 +
-- [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 05:53, 24 May 2014 (UTC)

Revision as of 05:53, 24 May 2014

Using UTC in Windows can cause some problems

There's a fair amount of evidence to show that when you run Windows with UTC time, things get hairy:

* [1] See the Current Support Status In Windows section
* [2] Raymond Chen has a nice writeup

Most people shouldn't get touched by this, but I know plenty of times I've been bugged (namely, every single debugger reads the BIOS clock and attempts to not de-botch itself) when using Windows with UTC time. In my experience, Windows 8 also will force BIOS time into being Un-DST adjusted Localtime. Dangerous!

--Indrora (talk) 05:58, 31 October 2012 (UTC)

Session/user time

It would be nice to mention in this article that the time zone can also be set for a single command (e.g. for testing an application under development) or a shell session by setting the TZ environment variable. If put in e.g. .bashrc it also allows setting the time zone for a specific user.

Then there are also faketime (from libfaketime) and datefudge for setting the time without touching the global settings, still for development/testing purposes.

At the moment I can't think of a good way to add these tips to the current article, which is kind of assuming that all the settings have to be global. Is there anybody with a good idea?

-- Kynikos (talk) 05:53, 24 May 2014 (UTC)