bash bsd get milliseconds of current date now code example Example: unix timestamp bash date +%s # Give the number of seconds since epoch