(request)
| 2696 | |
| 2697 | @pytest.mark.pandas |
| 2698 | def test_extract_datetime_components(request): |
| 2699 | timestamps = ["1970-01-01T00:00:59.123456789", |
| 2700 | "2000-02-29T23:23:23.999999999", |
| 2701 | "2033-05-18T03:33:20.000000000", |
| 2702 | "2020-01-01T01:05:05.001", |
| 2703 | "2019-12-31T02:10:10.002", |
| 2704 | "2019-12-30T03:15:15.003", |
| 2705 | "2009-12-31T04:20:20.004132", |
| 2706 | "2010-01-01T05:25:25.005321", |
| 2707 | "2010-01-03T06:30:30.006163", |
| 2708 | "2010-01-04T07:35:35.0", |
| 2709 | "2006-01-01T08:40:40.0", |
| 2710 | "2005-12-31T09:45:45.0", |
| 2711 | "2008-12-28T00:00:00.0", |
| 2712 | "2008-12-29T00:00:00.0", |
| 2713 | "2012-01-01T01:02:03.0"] |
| 2714 | timezones = ["UTC", "America/Chicago", "Asia/Kolkata", |
| 2715 | "Etc/GMT-4", "Etc/GMT+4", "Australia/Broken_Hill"] |
| 2716 | |
| 2717 | # Test timezone naive timestamp array |
| 2718 | _check_datetime_components(timestamps) |
| 2719 | |
| 2720 | # Test timezone aware timestamp array |
| 2721 | if not request.config.pyarrow.is_enabled["timezone_data"]: |
| 2722 | pytest.skip('Timezone database is not installed on Windows') |
| 2723 | else: |
| 2724 | for timezone in timezones: |
| 2725 | _check_datetime_components(timestamps, timezone) |
| 2726 | |
| 2727 | |
| 2728 | def test_offset_timezone(): |
nothing calls this directly
no test coverage detected