API: add is_beg_month/quarter/year, is_end_month/quarter/year accessors (#4565)