[Bug 1861] New: date doesn't support '%N'
bugzilla at busybox.net
bugzilla at busybox.net
Sun May 30 12:09:25 UTC 2010
https://bugs.busybox.net/show_bug.cgi?id=1861
Summary: date doesn't support '%N'
Product: Busybox
Version: 1.13.x
Platform: Other
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: Standard Compliance
AssignedTo: unassigned at busybox.net
ReportedBy: fraterbugzilla at hetemail.com
CC: busybox-cvs at busybox.net
Estimated Hours: 0.0
I would like to have support for 'date +%s.%N' to get nanoseconds...
nanoseconds is not really what I'm after, but I do like to have milliseconds so
I can use it in scripts like this:
start=`date +%s.%N`
sleep 1
echo "`date +%s.%N` - ${start}" | bc
echo "`date +%s.%N` - ${start}" | bc | awk '{printf "%.2f\n", $0}'
I'm using busybox 1.13 on DD-WRT (standard shell there).
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list