Answers for "date time stamp in shell"

2

get current timestamp shell

// If you want to get unix timestamp, then you need to use:
timestamp=$(date +%s)
Posted by: Guest on September-09-2020
0

unix timestamp bash

date +%s 

# Give the number of seconds since epoch
Posted by: Guest on May-16-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language