From owner-freebsd-arch@FreeBSD.ORG Thu Jul 31 03:53:44 2014 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9C83C2AD; Thu, 31 Jul 2014 03:53:44 +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 5AA2B2EC1; Thu, 31 Jul 2014 03:53:43 +0000 (UTC) Received: from smtp-auth1.server.rpi.edu (smtp-auth1.server.rpi.edu [128.113.2.231]) by smtp9.server.rpi.edu (8.14.3/8.14.3/Debian-9.4) with ESMTP id s6V3rfR3027464; Wed, 30 Jul 2014 23:53:42 -0400 Received: from smtp-auth1.server.rpi.edu (localhost [127.0.0.1]) by smtp-auth1.server.rpi.edu (Postfix) with ESMTP id C8D2F5821B; Wed, 30 Jul 2014 23:53:41 -0400 (EDT) Received: from [192.168.1.6] (cpe-72-231-155-88.nycap.res.rr.com [72.231.155.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: drosih) by smtp-auth1.server.rpi.edu (Postfix) with ESMTPSA id 837565800C; Wed, 30 Jul 2014 23:53:41 -0400 (EDT) From: "Garance A Drosehn" To: "Simon J. Gerraty" Subject: Re: XML Output: libxo - provide single API to output TXT, XML, JSON and HTML Date: Wed, 30 Jul 2014 23:53:12 -0400 Message-ID: <34EB8587-0F01-4F34-89D5-F0849062DC6F@rpi.edu> In-Reply-To: <20140731032240.8F711580A2@chaos.jnpr.net> References: <20140725044921.9F0D3580A2@chaos.jnpr.net> <82CFA67F-BA93-44EE-BD4B-9105F89AD157@rpi.edu> <20140731032240.8F711580A2@chaos.jnpr.net> 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: 02MwPRGFq X-CanIt-Geo: ip=72.231.155.88; 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: 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 03:53:44 -0000 On 30 Jul 2014, at 23:22, Simon J. Gerraty wrote: > On Wed, 30 Jul 2014 21:37:54 -0400, Garance A Drosehn writes: > >> I'd suggest that the above isn't quite what one would want, either. >> For the text version it's fine to have a time-of-day value as >> '6:47PM', but if you're going for machine-readable output then > > Actually for machine readable output the most useful thing is the utc > seconds. Eg (in case you don't have access to a Junos router): > While that may be the most useful thing for the applications on Junos, it is not necessarily the most useful thing for other apps. And in the case of EDN, if one was going to write a timestamp they might as well write it in the format expected by other EDN-based apps. IMO. -- Garance Alistair Drosehn = drosih@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA