From owner-freebsd-arch@FreeBSD.ORG Thu Jul 31 01:47:45 2014 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BF306FA2; Thu, 31 Jul 2014 01:47:45 +0000 (UTC) Received: from smtp9.server.rpi.edu (gateway.canit.rpi.edu [128.113.2.229]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 62D08214E; Thu, 31 Jul 2014 01:47:44 +0000 (UTC) Received: from smtp-auth2.server.rpi.edu (route.canit.rpi.edu [128.113.2.232]) by smtp9.server.rpi.edu (8.14.3/8.14.3/Debian-9.4) with ESMTP id s6V1jG98015323; Wed, 30 Jul 2014 21:45:16 -0400 Received: from smtp-auth2.server.rpi.edu (localhost [127.0.0.1]) by smtp-auth2.server.rpi.edu (Postfix) with ESMTP id 7DAA318079; Wed, 30 Jul 2014 21:45:16 -0400 (EDT) Received: from [128.113.24.47] (gilead-qc124.netel.rpi.edu [128.113.124.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: drosih) by smtp-auth2.server.rpi.edu (Postfix) with ESMTPSA id 6CBD218009; Wed, 30 Jul 2014 21:45:16 -0400 (EDT) From: "Garance A Drosehn" To: "Simon Gerraty" Subject: Re: XML Output: libxo - provide single API to output TXT, XML, JSON and HTML Date: Wed, 30 Jul 2014 21:45:15 -0400 Message-ID: In-Reply-To: <82CFA67F-BA93-44EE-BD4B-9105F89AD157@rpi.edu> References: <20140725044921.9F0D3580A2@chaos.jnpr.net> <82CFA67F-BA93-44EE-BD4B-9105F89AD157@rpi.edu> MIME-Version: 1.0 X-Mailer: MailMate (1.7.2r3905) X-Virus-Scanned: ClamAV using ClamSMTP X-Bayes-Prob: 0.0001 (Score 0, tokens from: outgoing, @@RPTN) X-Spam-Score: 0.00 () [Hold at 15.10] X-CanIt-Incident-Id: 02MwNJgfn X-CanIt-Geo: ip=128.113.124.17; country=US; region=New York; city=Troy; latitude=42.7495; longitude=-73.5951; http://maps.google.com/maps?q=42.7495,-73.5951&z=6 X-CanItPRO-Stream: outgoing X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.113.2.229 Cc: sjg@freebsd.org, arch@freebsd.org, marcel@freebsd.org, phil@juniper.net X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2014 01:47:45 -0000 On 30 Jul 2014, at 21:37, Garance A Drosehn wrote: > > [...] if you're going for machine-readable output then > you'd want that in some format which was much more specific and > *standard* (as opposed to arbitrary pretty-printed strings). > Something like the ISO 8601 format used in obscure parts of lpd: > > #define LPD_TIMESTAMP_PATTERN "%Y-%m-%dT%T%z %a" > Or you could follow the example of EDN, and use rfc-3339-format > (see '#inst' at https://github.com/edn-format/edn). The nice > thing about standards is that there are so many to choose from. I should note that these two formats are very similar, and in fact may be exactly the same. I kept meaning to see if there was any difference between them. I just noticed that the rfc has the 'Z' suffix as an option for a timezone, and I don't think that the ISO one does. -- Garance Alistair Drosehn = drosih@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA