For users
apply_ufunc
For developers/contributors
Community
Adapted from pandas.tseries.index.DatetimeIndex.get_value