chrono icon indicating copy to clipboard operation
chrono copied to clipboard

feat: add support to unix timestamp

Open RodrigoDornelles opened this issue 1 year ago • 2 comments

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

RodrigoDornelles avatar Apr 19 '24 20:04 RodrigoDornelles

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.

wanasit avatar Jun 01 '24 10:06 wanasit

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.

RodrigoDornelles avatar Jun 02 '24 17:06 RodrigoDornelles