$EPOCHREALTIME  –  Floating Point Number of Seconds since Unix Epoch

$EPOCREALTIME contains the number of seconds since the Unix Epoch. It’s a floating-point value with micro-seconds granularity.

The Unix Epoch starts at 1970-01-01 00:00:00 +0000 (UTC).

Examples

Print number of seconds since UNIX Epoch
1
2
LC_ALL=en_US
echo $EPOCHREALTIME
BashSupport Pro is a Bash IDE with support for $EPOCHREALTIMEtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal