Skip to content

CLI application for converting Unix timestamp to human readable timestamp in local timezone

License

Notifications You must be signed in to change notification settings

mike-hosseini/epoch_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

epoch_parser

CLI application for converting Unix timestamp to human readable timestamp in local timezone

This Python application is written for Python 3.7+.

Usage

1. Input file

Specify -f optional argument and provide a filepath. The input file should have one unix timestamp (in milliseconds) per line.

python epoch_parser.py -f input.txt

2. Standard input

Specify -ts optional argument and provide in unix timestamp in milliseconds.

# an arbitary unix timestamp
python epoch_parser.py -ts 1564791980702

# current timestamp (macOS)
python epoch_parser.py -ts `date +%s000`

# current timestamp (Linux)
python epoch_parser.py -ts `date +%s%3N`

Contribution

See an area for improvement, please open an issue or send a PR. :-)

About

CLI application for converting Unix timestamp to human readable timestamp in local timezone

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages