From owner-cvs-all@FreeBSD.ORG Tue Feb 19 07:19:57 2008 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 935F216A41A; Tue, 19 Feb 2008 07:19:57 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail15.syd.optusnet.com.au (mail15.syd.optusnet.com.au [211.29.132.196]) by mx1.freebsd.org (Postfix) with ESMTP id 1575613C45E; Tue, 19 Feb 2008 07:19:56 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mail15.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m1J7Jr1e017524 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 19 Feb 2008 18:19:54 +1100 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.1) with ESMTP id m1J7JrJe058221; Tue, 19 Feb 2008 18:19:53 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m1J7JrIh058220; Tue, 19 Feb 2008 18:19:53 +1100 (EST) (envelope-from peter) Date: Tue, 19 Feb 2008 18:19:53 +1100 From: Peter Jeremy To: Tim Kientzle Message-ID: <20080219071953.GP64299@server.vk2pj.dyndns.org> References: <200802190602.m1J622Fe079227@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Nx8xdmI2KD3LNVVP" Content-Disposition: inline In-Reply-To: <200802190602.m1J622Fe079227@repoman.freebsd.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.17 (2007-11-01) Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/lib/libarchive archive_read_support_format_iso9660.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2008 07:19:57 -0000 --Nx8xdmI2KD3LNVVP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 19, 2008 at 06:02:02AM +0000, Tim Kientzle wrote: > Without that, I > don't see a really good alternative to just giving up and converting to > localtime with mktime(). (I suppose I should research the Perl library > approach for computing an inverse function to gmtime(); that might > actually be simpler than this growing list of hacks.) mktime() and timegm() basically use successive approximation (binary search) with localtime() and gmtime() - so you can fairly easily create your own timegm(). If you have a normalised date, I have a direct formula to go from year/month/day to number of days past some epoch for dates covering at least the 32-bit Unix epoch (I haven't checked to see where the boundaries actually are). --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --Nx8xdmI2KD3LNVVP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHuoMZ/opHv/APuIcRAgTgAJ9cDm5+pxr4E5OzDkzuak5DrNY54wCgp6IY iMULHFNNiD1XFOR4liaZhQk= =I/yP -----END PGP SIGNATURE----- --Nx8xdmI2KD3LNVVP--