Negative timestamp parsing on windows: timestamp out of range for platform localtime()/gmtime() function
See original GitHub issueThanks for arrow!
Over on conda-forge, our build of 0.15.1 turned up this test fail on windows:
ERROR: test_parse_timestamp (tests.parser_tests.DateTimeParserParseTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\bld\arrow_1568153654810\_test_env\lib\site-packages\chai\chai.py", line 63, in wrapper
func(self, *args, **kwargs)
File "D:\bld\arrow_1568153654810\test_tmp\tests\parser_tests.py", line 229, in test_parse_timestamp
self.expected = datetime.fromtimestamp(negative_int_timestamp, tz=tz_utc)
ValueError: timestamp out of range for platform localtime()/gmtime() function
----------------------------------------------------------------------
Ran 385 tests in 1.109s
Excluding this on windows got things going again, but is this a cause for concern?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Timestamp out of range for platform localtime()/gmtime() function
For many values, like too far in the past or the future, just feeding the timestamp to fromtimestamp() will complain with an out...
Read more >Proper conversion of timestamp - Google Groups
Hi, ALL, I'm getting this: timestamp out of range for platform localtime()/gmtime() function trying to convert the timestamp with milliseconds into the ...
Read more >time — Time access and conversions — Python 3.11.1 ...
Function strptime() can parse 2-digit years when given %y format code. ... localtime() may raise OverflowError , if the timestamp is outside the...
Read more >D135045 [Frontend] Recognize environment variable ... - LLVM
The time_t value may be negative and its value range is platform-dependent. It is better to be as transparent as possible. gmtime/localtime ......
Read more >16.3. time — Time access and conversions
Most of the functions defined in this module call platform C library ... The time value as returned by gmtime() , localtime() ,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for the clarification! Merged -1 minutes from now!
On Tue, Sep 10, 2019 at 9:47 PM Jad Chaar notifications@github.com wrote:
Hey @bollwyvl, we have released 0.15.2, which includes the fix for tests on Windows 😃.