wolph / python-statsd

Python Client for the Etsy NodeJS Statsd Server
http://readthedocs.org/docs/python-statsd/en/latest/
BSD 3-Clause "New" or "Revised" License
110 stars 39 forks source link

statsd.raw.Raw: send should accept datetime objects #18

Closed adroffner closed 9 years ago

adroffner commented 11 years ago

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.

wolph commented 11 years ago

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