Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!uakari.primate.wisc.edu!ames!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.unix.questions Subject: Re: Date: Can it be specific to a shell?? Message-ID: <11004@smoke.BRL.MIL> Date: 9 Sep 89 02:16:25 GMT References: <72074@yale-celray.yale.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 19 In article <72074@yale-celray.yale.UUCP> zador-anthony@CS.YALE.EDU (anthony zador) writes: > How does the UNIX date command know the date? It's maintained by the kernel and accessed via the time() system call. >Is there some file that is updated? No. >Must date be the same to all shells on a given machine, You can generally use the TZ environment variable to set the time zone that is applied when interpreting the kernel's time (which is maintained as UT, not local time). >If a machine A is the disk server for B, what determines >the date-stamp for a file, A or B? The kernel that owns the disk inode controls the time stamp.