agoragames / kairos

Python module for time series data in Redis and Mongo
BSD 3-Clause "New" or "Revised" License
207 stars 38 forks source link

Support datetime objects as timestamps #39

Open awestendorf opened 10 years ago

awestendorf commented 10 years ago

On insert, and wherever else it's appropriate, allow the timestamp argument to be a datetime argument as well as a float. Maybe also support time and date objects. For more fun, accept a timedelta and use it to calculate a timestamp from datetime.utcnow.