Add some helper functions

Broke this out from https://github.com/rackerlabs/mimic/pull/105 so that PR can be a little smaller
There are a bunch of uses of `strftime` throughout the codebase. Please open an issue to clean them all up once this is merged.