convert between year, month and milliseconds