Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 May 2001 23:14:41 -0600
From:      Chris Fedde <chris@fedde.littleton.co.us>
To:        "Crist Clark" <crist.clark@globalstar.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: mktime(3) Bug? 
Message-ID:  <200105160514.f4G5Ef836010@fedde.littleton.co.us>
In-Reply-To: <3B01CD18.6E725786@globalstar.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 15 May 2001 17:43:04 -0700  "Crist Clark" wrote:
 +------------------
 | Before I send in a PR, I wanted to make sure this was really a bug and
 | not some bizarre "feature" everyone already knew about but me.
 | 
 | I noticed odd behavior when doing some conversions with date(1) (FreeBSD's
 | date(1) rewls for letting you do these kinds of conversions, BTW). Note what
 | happens when I cross a daylight savings time boundary (which was the 1st 
 | of April for my timezone this year),
 | 
 |   $ date -j -f %Y%m%d%H%M 200104010000
 |   Sat Mar 31 23:00:46 PST 2001
 +------------------

I suspect that you are correct. I'd expect date to print
    
    Sun Apr  1 00:00 PST 2001

for your input.

--
    Chris Fedde

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105160514.f4G5Ef836010>