Implement partial support for truncate.

Partial as it does not properly support months per the y2k+1 problem.