Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10 Year 2038 OSError #812

Open
tpradeep opened this issue Mar 19, 2021 · 0 comments
Open

Windows 10 Year 2038 OSError #812

tpradeep opened this issue Mar 19, 2021 · 0 comments

Comments

@tpradeep
Copy link

I am having 2038 problem in Windows 10 while retrieving dates from Eclipse generated restart file.

rst.iget_restart_sim_time(6661)
datetime.datetime(2038, 1, 1, 0, 0)

rst.iget_restart_sim_time(6662)

Traceback(most recent call last):

File "", line 1, in
rst.iget_restart_sim_time(6662)

File "C:\Users\P.Tummala\Anaconda3\envs\pysim\lib\site-packages\ecl\eclfile\ecl_file.py", line 653, in iget_restart_sim_time
return ct.datetime()

File "C:\Users\P.Tummala\Anaconda3\envs\pysim\lib\site-packages\ecl\util\util\ctime.py", line 59, in datetime
return datetime.datetime(*self.time()[0:6])

File "C:\Users\P.Tummala\Anaconda3\envs\pysim\lib\site-packages\ecl\util\util\ctime.py", line 52, in time
return time.gmtime(self.value())

OSError: [Errno 22] Invalid argument

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant