timestamp output on rnds stats output, GRRR!
Mark Andrews
Mark_Andrews at isc.org
Thu Sep 18 23:01:35 UTC 2008
In message <alpine.LRH.2.00.0809181335450.13534 at rh-colby0.colby.edu>, "Jeff A.
Earickson" writes:
> Yo Bind Developers,
>
> Using Bind 9.5.0-P2. Why, oh why, does "rndc stats" give timestamp
> information in UNIX epoch seconds??!! Why can't ns_stats_dump() in
> bin/named/statschannel.c do a call to localtime() or gmtime() and
> convert the UNIX epoch into a human-readable time?
>
> Jeff Earickson
> Colby College
>
Because you can do math on seconds easily. Also there are
lots of way to convert seconds into a human readable format.
To add to the list already in this thread.
date -r <value>
Addionally the reverse conversion can be ambigious.
EST is both "Eastern Standard Time" and "Eastern Summer Time"
in some parts of the world.
Mark
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews at isc.org
More information about the bind-users
mailing list