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
Labels

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

@eivindjahren eivindjahren added the christmas-review Issues and PRs for Christmas review label Dec 13, 2024
@eivindjahren eivindjahren added bug and removed christmas-review Issues and PRs for Christmas review labels Dec 20, 2024
@sondreso sondreso moved this to Todo in SCOUT Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

2 participants