Parts of the cctz source. As the name implies it can be used to round. For rounding date times which are exactly halfway between two consecutive units the convention is to round up.