[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] set time
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] set time |
Date: |
Fri, 14 Sep 2012 08:48:59 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Fri, Sep 14, 2012 at 07:25:22AM +0000, address@hidden wrote:
> Sorry for the lack of clarity. I meant the system clock. What `date
> -s ...' does, but without specifying the target time but instead
> specifying the (negative or positive) offset interval (i.e., the
> number of seconds/minutes/hours by which I want the clock to be
> offset).
But *why* do you want to set the system clock ahead 2.5 hours? It's
such a bizarre request that you must be doing it to solve some other
problem, which can perhaps be solved more directly (e.g. by using Bob's
faketime approach, if the problem you're really trying to solve is
"run this program and make it think that it's 2004 to work around the
stupid license").
Another possible problem you might be working on is "tell me what time
it is in this other time zone", in which case you just want to invoke
date(1) with the TZ variable set appropriately, like so:
cyclops:~$ date; TZ=US/Pacific date
Fri Sep 14 08:47:35 EDT 2012
Fri Sep 14 05:47:35 PDT 2012