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

datetime.datetime.utcfromtimestamp #195

Open
guaguaguaxia opened this issue Dec 8, 2023 · 1 comment
Open

datetime.datetime.utcfromtimestamp #195

guaguaguaxia opened this issue Dec 8, 2023 · 1 comment

Comments

@guaguaguaxia
Copy link

PS C:\python311\lib\site-packages\rdbtools\cli> python rdb.py -c memory C:\Users\guagu\Desktop\redis_rdb\hins25205082_data_20231208042425.rdb --bytes 128 -f memory.csv
Traceback (most recent call last):
File "C:\python311\lib\site-packages\rdbtools\cli\rdb.py", line 112, in
main()
File "C:\python311\lib\site-packages\rdbtools\cli\rdb.py", line 106, in main
parser.parse(options.dump_file[0])
File "C:\Python311\Lib\site-packages\rdbtools\parser.py", line 394, in parse
self.parse_fd(open(filename, "rb"))
File "C:\Python311\Lib\site-packages\rdbtools\parser.py", line 411, in parse_fd
self._expiry = read_milliseconds_time(f)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\rdbtools\parser.py", line 1104, in read_milliseconds_time
return to_datetime(read_unsigned_long(f) * 1000)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\rdbtools\parser.py", line 1067, in to_datetime
dt = datetime.datetime.utcfromtimestamp(seconds_since_epoch)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 22] Invalid argument

1702021444341

I had this problem use this command.please help me

@smilyFw
Copy link

smilyFw commented Dec 8, 2023 via email

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

2 participants