bug in double for dates at yearly frequency

for a dates object

dd=dates('2001Y');

the double of it provides 2000

dd.double

ans =

        2000
Edited by Marco Ratto