Details
Description
Currently AddInterval functions use boost's ptime and duration classes + there is a lot wrapper code to avoid exceptions caused by out of range timestamps and overflows caused by large intervals.
A different way would be to split the intervals to day + time_of_day, and add these to TimestampValue::date_/time_ directly + handle day overflow. This would probably make these functions much faster and would not increase complexity, because most of this logic is already needed to avoid boost overflows.