Skip to main content

Posts

Showing posts with the label timestamp

Batch Epoch time converter in java and shell wrapper

I had to create a sample script to convert epoch time to Human readable format.  (both ways) Also from Human readable time format to Epoch.  Input is a file with "Epoch" or "Human Readable"  format and the program will convert in the other format. This could be used for embedding into your application or for batch convert, please find my program in Java .... Afterwards, you can put this java file into a shell script if you want to automate your linux scripts Usage: <scriptname> <inputfiletimeformat> <input_file_name_full_path> ....