From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 25 19:50:32 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7486A745 for ; Sat, 25 Oct 2014 19:50:32 +0000 (UTC) Received: from nyi.unixathome.org (nyi.unixathome.org [64.147.113.42]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "nyi.unixathome.org", Issuer "StartCom Class 2 Primary Intermediate Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4390069 for ; Sat, 25 Oct 2014 19:50:31 +0000 (UTC) Received: from nyi.unixathome.org (localhost [127.0.0.1]) by nyi.unixathome.org (Postfix) with ESMTP id 7C46A5084A; Sat, 25 Oct 2014 19:50:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at unixathome.org Received: from nyi.unixathome.org ([127.0.0.1]) by nyi.unixathome.org (nyi.unixathome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i6Xb6ywWAGSI; Sat, 25 Oct 2014 19:50:19 +0000 (UTC) Received: from smtp-auth.unixathome.org (smtp-auth.unixathome.org [10.4.7.7]) (Authenticated sender: hidden) by nyi.unixathome.org (Postfix) with ESMTPSA id CD50950843 ; Sat, 25 Oct 2014 19:50:18 +0000 (UTC) Content-Type: multipart/signed; boundary="Apple-Mail=_B718EA43-FD52-42BD-9BB0-D51D04C39FAC"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: perl isvaliddate function From: Dan Langille In-Reply-To: Date: Sat, 25 Oct 2014 15:50:26 -0400 Message-Id: References: <4EA9EE9C-5049-4C50-B361-07F58FA19896@langille.org> To: "B. Estrade" X-Mailer: Apple Mail (2.1878.6) Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Oct 2014 19:50:32 -0000 --Apple-Mail=_B718EA43-FD52-42BD-9BB0-D51D04C39FAC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Oct 25, 2014, at 2:21 PM, B. Estrade wrote: > Looks fine to just get it working. If you wanted to be more efficient, = I believe there is a way to use the core POSIX::strfmtime in a way that = would verify that the date you start with is the same date as the one = returned after the format. This core function is also very useful for = date addition and subtraction. >=20 > I don't have time at this moment to create a proof of concept, but if = you're interested let me know and I will when I have a minute. Yes, please, when you have time, please try that proof for me. I would = appreciate that. FYI: I believe all dates within the ports tree must be YYYY-MM-DD so = using something like that would be useful. Comparing the starting date to the supplied date is good too, to catch = edge cases like the first example. =97=20 Dan Langille --Apple-Mail=_B718EA43-FD52-42BD-9BB0-D51D04C39FAC Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iKYEARECAGYFAlRL/wJfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldDA3REZBQjJGRUQ3NEE5QkE0NTNGOUJCNzBB MEIxNzE0Q0ZGQjlEM0MACgkQCgsXFM/7nTzacACg3MgIw1fzLkST1jlIOGeFh+eX EIsAoKz4O3nkkrwrZHa6LSwN8PBGirEX =ijMl -----END PGP SIGNATURE----- --Apple-Mail=_B718EA43-FD52-42BD-9BB0-D51D04C39FAC--