Adds methods for start of day, week, month, and quarter.

Also method to check if a timestamp is within the current period.