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

feat: add support to unix timestamp #549

Open
RodrigoDornelles opened this issue Apr 19, 2024 · 2 comments
Open

feat: add support to unix timestamp #549

RodrigoDornelles opened this issue Apr 19, 2024 · 2 comments

Comments

@RodrigoDornelles
Copy link

It is interesting to support the Posix standard as one of the formats compatible with the parser.

@wanasit
Copy link
Owner

wanasit commented Jun 1, 2024

Hello. Sorry for my slow reply and thank you for your suggestion.

Could you clarify what Posix standard/pattern/format you mean? (link?)
Or you are suggesting we should recognize 10digits numbers in the possible range (e.g. 1717236990) as a timestamp?

If it's the latter, I'm not sure if we should include it in the default setting.

@RodrigoDornelles
Copy link
Author

Could you clarify what Posix standard/pattern/format you mean? (link?) Or you are suggesting we should recognize 10digits numbers in the possible range (e.g. 1717236990) as a timestamp?

That would be it, you wouldn't need a decorator around the function, maybe it supports unix:1111111111, it's not human readable which is what the lib proposes, but it ends up being useful anyway.

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

No branches or pull requests

2 participants