Date: Sat, 25 Oct 2014 15:50:26 -0400 From: Dan Langille <dan@langille.org> To: "B. Estrade" <estrabd@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: perl isvaliddate function Message-ID: <E7A7A52F-A54E-4D6D-BC2B-D349E228FCA4@langille.org> In-Reply-To: <CALSf6fQ%2BiaXrz9bCe7mZEz8K%2BUsbG5jdgibueNK_dyhMUY2xdg@mail.gmail.com> References: <4EA9EE9C-5049-4C50-B361-07F58FA19896@langille.org> <CALSf6fQ%2BiaXrz9bCe7mZEz8K%2BUsbG5jdgibueNK_dyhMUY2xdg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <estrabd@gmail.com> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E7A7A52F-A54E-4D6D-BC2B-D349E228FCA4>