pandas: datetime truncation
python: add datetime truncation functions

This might be appropriate as a separate library

This is not robust to timezones