Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 10 lines (7 sloc) 213 Bytes
#!/bin/bash
# Print a timestamp with millisecond resolution.
# Leading digits for the seconds-part are discarded to help the result fit
# within a 32-bit integer.
S=`date +%s`
N=`date +%N`
echo "${S:5}${N:0:3}"