9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Kenji Okamoto okamoto@earth.cias.osakafu-u.ac.jp
Subject: date command (Another question ? _o_ )
Date: Sat,  9 Sep 1995 14:44:05 -0400	[thread overview]
Message-ID: <19950909184405.ACDq5vOmECm9J4LvNk0aAboVWCzeY_wVKYEQksF_0dg@z> (raw)

> /adm/timezone/Japan is simpler than most:
> % cat /adm/timezone/Japan
> JST 32400
> 
> it looks as though ctime fails to realise that a single time zone & GMT offset
> not followed by a list of time changes probably means that the location hasn't got
> the notion of `daylight savings' or `summer time'.
> instead it defaults to GMT, obviously aware of the splendid weather here this summer.
> perhaps it's not worth changing the code.  i tried:
> 
> JST 32400 JST 32400
> 
> instead, and date then gave JST instead of defaulting to GMT.
> try:
> echo 'JST 32400 JST 32400' >/env/timezone
> date
> 
> if the result looks right to you, update /adm/timezone/Japan and /adm/timezone/local.
> (then reboot.)
> 
> if it still needs some adjustment, see ctime(2) for a description of the timezone
> file format.
> 

This time you don't get turget. :-)

After I applied above, and did the date command, I got a future time
like this:

      Sun Sep 10 03:36:55 JST 1995.

I dispatched the date command at

      Sat Sep  9 18:36:55.

It's 9 hours ahead now.

Kenji







             reply	other threads:[~1995-09-09 18:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-09-09 18:44 Kenji [this message]
  -- strict thread matches above, loose matches on Subject: below --
1995-09-11 10:21 Kenji
1995-09-09 15:21 Kenji
1995-09-09 11:30 dhog
1995-09-09 11:11 forsyth
1995-09-09  8:46 forsyth
1995-09-08 11:40 Kenji
1995-09-08  7:37 dhog

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19950909184405.ACDq5vOmECm9J4LvNk0aAboVWCzeY_wVKYEQksF_0dg@z \
    --to=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).