sleep does nothing, for a certain amount of time. That amount of time may be specified in several ways:
Sleep for five seconds:
sleep 5
Sleep for five minutes:
sleep 5m
Sleep for one minute and 23 seconds:
sleep 1:23
Sleep for half a second:
sleep 0.5
Sleep for a minute and a half:
sleep 1.5m
Sleep for one minute, 23.45 seconds:
sleep 1:23.45
Sleep until nine o'clock tonight:
sleep -until 21:00
Sleep until a quarter of a second past nine o'clock tonight:
sleep -until 21:00:00.25
The default colon-separated format for relative sleeps is mm:ss, but for absolute (-until) sleeps it's hh:mm, which is irregular and potentially confusing.
If you try to use the -until option to sleep until some time tomorrow (if, for example, at 11:00 at night you invoke ``sleep -until 1:00'', intending about a two-hour sleep) the program instead complains that it can't sleep for a negative time.
This is obviously a reimplementation,
with extensions,
of the standard
sleep(1)
command.
See
http://www.eskimo.com/~scs/src/#sleep
for possible updates.
Steve Summit, scs@eskimo.com