Tuesday, April 12, 2011

units.sql

Put it here.
Unit conversion script [pathetically :-) mimicking units (1)].

Usage: units.sql [n] <from time unit> [[to] <to time unit>]
Example:
@units.sql sec to us
1 second(s) = 1000000 microsecond(s)

@units.sql 15 milliseconds second
15 millisecond(s) = .015 second(s)

@units.sql 30 seconds to day
30 second(s) = .000347222 day(s) [*.00001157407]

Supported units: us, ms, cs, ss, mi, hh, dd

No comments: