(date: pd.Timestamp)
| 288 | |
| 289 | |
| 290 | def _maybe_strip_tz_from_timestamp(date: pd.Timestamp) -> pd.Timestamp: |
| 291 | # If the ref_date Timestamp is timezone-aware, convert to UTC and |
| 292 | # make it timezone-naive (GH 2649). |
| 293 | if date.tz is not None: |
| 294 | return date.tz_convert("UTC").tz_convert(None) |
| 295 | return date |
| 296 | |
| 297 | |
| 298 | def _cast_timestamp_to_coarsest_resolution(timestamp: pd.Timestamp) -> pd.Timestamp: |
no outgoing calls
no test coverage detected
searching dependent graphs…