12:44 < RhodiumToad> akretschmer: the way to think about it is this: starting from the _later_ of the two dates, step back by as many whole months as you
can, and that's the "months" part
12:44 < RhodiumToad> akretschmer: then from that date, step back by days until you reach the earlier date
12:46 < RhodiumToad> akretschmer: so for 2009-02-28, you go 2 months to 2008-12-28, and then 11 days to 2008-12-17
12:46 < akretschmer> ahh
12:46 < RhodiumToad> akretschmer: for 2009-03-01, you go 2 months to 2009-01-01, and then 14 days to 2008-12-17
12:46 -!- bin10101 (n=aars@rrcs-24-153-239-89.sw.biz.rr.com) has joined #postgresql
12:46 < RhodiumToad> akretschmer: it's all down to the variable length of months, of course