Answers for "how to get current date unix timestamp in date"

3

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
-1

get unix time from date

$ date +%s  ## gives UNIX timestamp at command line
Posted by: Guest on January-26-2022

Code answers related to "how to get current date unix timestamp in date"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language