From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.lisp.guile.user Subject: [SOLVED] Trying to get friends with SRFI-19 Date: Wed, 22 Jul 2020 23:20:39 +0200 Message-ID: <20200722212039.GB19139@tuxteam.de> References: <20200720212703.GC31180@tuxteam.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wzJLGUyc3ArbnUjN" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33701"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Jul 22 23:21:02 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jyMAg-0008eP-5T for guile-user@m.gmane-mx.org; Wed, 22 Jul 2020 23:21:02 +0200 Original-Received: from localhost ([::1]:57280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jyMAf-0008Gq-75 for guile-user@m.gmane-mx.org; Wed, 22 Jul 2020 17:21:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyMAU-0008GT-6F for guile-user@gnu.org; Wed, 22 Jul 2020 17:20:50 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:54222) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1jyMAS-0004Ue-9e for guile-user@gnu.org; Wed, 22 Jul 2020 17:20:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date; bh=TFmInqI720yxt/G7ktCmtprtaSyzxFAU2BiVbFDSLg4=; b=fBEFpcNhOVacG8VVaO+b12kJzzdDx3GqqKdeVUKbjNDNA+h8TtwXGYEUMW22BBg8Cfqe0bdIUDPuRD04qKUbreLth0AoAk2Cpsq5lsWSVqO2/NlVvHqOhlA/Bi/aimDVchMy8DXAOeqtTipbo45RLUildfTn24Uj/DGsSwyNFC1qShWoNXWAHyI8tYBA6yLsmJ7FvbVIR7GZ/gYXb44gQHhmJ1CVjxh2ldNvisiU/LQHsc4eZM4h2Ur5kbYoCzXfLyepBZ1K1C4cCnLigPBDwKAGOqGIc2D2iia1Z+0Po9GypUj0M4EuWjG5oMXsjCHVvTPQUYHsd0dWXeF7+4OI7Q==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1jyMAJ-0006Ob-Ax for guile-user@gnu.org; Wed, 22 Jul 2020 23:20:39 +0200 Content-Disposition: inline In-Reply-To: <20200720212703.GC31180@tuxteam.de> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/22 17:20:39 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16716 Archived-At: --wzJLGUyc3ArbnUjN Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 20, 2020 at 11:27:03PM +0200, tomas@tuxteam.de wrote: > Hi, >=20 > I'm trying to parse some stuff, part of which are date > strings of the form "20200106", i.e. "YYYYMMDD" [...] > Is there a canonical way to validate a date string? I ended up rolling my own (and converting to SRFI-19 date once validation says "OK"). Is there interest in such a thing? i.e. valid-date? (y m d) -> bool returns whether (y m d) is a valid Gregorian date. I wouldn't mind putting it up somewhere, with a suitable license. OTOH, it's a whopping 36 lines or so, so perhaps not worth it ;-D Cheers -- t --wzJLGUyc3ArbnUjN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl8YracACgkQBcgs9XrR2kbsCgCdGhYBh6s+/sCCmDQ+MTM1Lpqc NkcAn0ZyHZnT4N17yQOCYbv/X+wfN2hk =1x6l -----END PGP SIGNATURE----- --wzJLGUyc3ArbnUjN--