Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

epoch bash

# To get current time in seconds since Epoch
date +%s

# To convert an Epoch into a readable date and time
date --date @1648009577
 
PREVIOUS NEXT
Tagged: #epoch #bash
ADD COMMENT
Topic
Name
9+5 =