Return a Timestamp object with the default precision. Xarray default is "ns".
(*args, **kwargs)
| 88 | |
| 89 | |
| 90 | def default_precision_timestamp(*args, **kwargs) -> pd.Timestamp: |
| 91 | """Return a Timestamp object with the default precision. |
| 92 | |
| 93 | Xarray default is "ns". |
| 94 | """ |
| 95 | dt = pd.Timestamp(*args, **kwargs) |
| 96 | if dt.unit != "ns": |
| 97 | dt = timestamp_as_unit(dt, "ns") |
| 98 | return dt |
no test coverage detected
searching dependent graphs…