Quantcast
Channel: How to get milliseconds since Unix epoch? - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 6

Answer by javabeangrinder for How to get milliseconds since Unix epoch?

$
0
0

With the GNU or ast-open implementation of date (or busybox' if built with the FEATURE_DATE_NANO option enabled), I would use:

$ date +%s%3N

which returns milliseconds since Unix epoch.


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>