API-1887 months() and years() functions