wolph/python-statsd

statsd.raw.Raw: send should accept datetime objects

Closed this issue · 1 comments

import calendar
from datetime import datetime
dt = datetime.utcnow()
r.send('Test', 23, calendar.timegm(dt.timetuple()))

I'd like the raw.send(value, unix_time) method to also accept & convert datetime objects. The code above does this externally.

Is that supported at the statsd end though? i.e. does statsd understand unix timestamps?