[rrd-users] Re: rrd_updade confusion

Alex van den Bogaerdt alex at ergens.op.het.net
Thu Aug 19 15:50:39 MEST 2004


On Thu, Aug 19, 2004 at 06:33:20AM -0700, winkey wrote:

> when updateing data and you use a time_t value instead of N: is this utc
> time aswell?

It is in seconds since the unix-epoch.  An "amount of seconds since" has
no concept of timezones.

$ date -u +%s; date +%s; date -u; date
1092922892
1092922892
Thu Aug 19 13:41:32 UTC 2004
Thu Aug 19 15:41:32 CEST 2004

As you can see, specifying "-u" (use utc) does not matter for the epoch
time whereas it does for wallclock time.

HTH
Alex
-- 
I ask you to respect any "Reply-To" and "Mail-Follow-Up" headers.  If
you reply to me off-list, you'd better tell me you're doing so.  If
you don't, and if I reply to the list, that's your problem, not mine.

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list