Decode a BSON datetime to python datetime.datetime.
(
data: Any, _view: Any, position: int, dummy0: int, opts: CodecOptions[Any], dummy1: Any
)
| 432 | |
| 433 | |
| 434 | def _get_date( |
| 435 | data: Any, _view: Any, position: int, dummy0: int, opts: CodecOptions[Any], dummy1: Any |
| 436 | ) -> Tuple[Union[datetime.datetime, DatetimeMS], int]: |
| 437 | """Decode a BSON datetime to python datetime.datetime.""" |
| 438 | return _millis_to_datetime(_UNPACK_LONG_FROM(data, position)[0], opts), position + 8 |
| 439 | |
| 440 | |
| 441 | def _get_code( |
nothing calls this directly
no test coverage detected