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

Extremely large timestamps reported #7

Open
mappu opened this issue Dec 20, 2023 · 1 comment
Open

Extremely large timestamps reported #7

mappu opened this issue Dec 20, 2023 · 1 comment

Comments

@mappu
Copy link

mappu commented Dec 20, 2023

Hi,

Thank you for this library, it's extremely useful.

In some cases I found that the reported FileInfo.ModTime() is extremely large (e.g. got 3850511446000000000, expected 1703027798)

Should the timestamp be converted to the correct epoch? XFS uses Dec 1901 instead of Jan 1970, it's an offset of 2^31 (signed vs unsigned)

Should the timestamp be converted to the correct units? XFS uses nanosecond precision, it's a factor of 10^9.

The XFS filesystem was created today with xfsprogs 6.1. Probably that means it uses bigtime feature. Does this library support bigtime?

@masahiro331
Copy link
Owner

I will check... soon

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