XML Output: libxo - provide single API to output TXT, XML, JSON and HTML
Garance A Drosehn
drosih at rpi.edu
Thu Jul 31 01:47:45 UTC 2014
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 at rpi.edu
Senior Systems Programmer or gad at FreeBSD.org
Rensselaer Polytechnic Institute; Troy, NY; USA
More information about the freebsd-arch
mailing list