xarray.CFTimeIndex.get_loc

CFTimeIndex.get_loc(key, method=None, tolerance=None)

Adapted from pandas.tseries.index.DatetimeIndex.get_loc