sttr icon indicating copy to clipboard operation
sttr copied to clipboard

[FEATURE-REQUEST] Add epoch-human | human-epoch (Unix TimeStamps)

Open Azathothas opened this issue 1 year ago • 1 comments

Hi, thanks for this.

It would be nice to implement a unix/epoch TimeStamp to Human date encoder/decoder

An example:

# You can ofc choose better cli args than `epoch-human`
❯ echo "1710152465311" | sttr epoch-human
2024-03-11T10:21:05
#The format is %Y-%m-%dT%H:%M:%S but you could pick something more readable

Azathothas avatar Mar 11 '24 11:03 Azathothas

Thanks so much for suggestion also glad to know that you liked the project. Working with time is quite tricky as you have to work different format and timezones, I will surely try something over the weekend once confident I will release it.

abhimanyu003 avatar Mar 12 '24 11:03 abhimanyu003