This ensures that the faster epoch2num variant is only used when appropriate (i.e., type(dt) = datetime64[ns]).