Skip to content

tomwhoiscontrary/isots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple and somewhat silly utility which looks for digit strings which might be unix timestamps (counts of time since the unix epoch) and rewrites them as ISO 8601 date-time strings.

A digit string is considered to be a unix timestamp if it starts with a 1 followed by a 4 or 5, and has 10 to 19 digits. That corresponds to a range of time from 2014-05-13 16:53:20 to 2020-09-13 12:26:40 (not inclusive), with precision of seconds to nanoseconds.

Input is accepted on standard input, and written to standard output. Date-time strings are always in UTC.

There is at least one long-standing bug I haven’t fixed.

About

a program to replace plausible UNIX timestamps with ISO 8601 datetimes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages