Besttime

From Eigenvector Research Documentation Wiki
Revision as of 12:51, 25 September 2008 by imported>Neal
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Purpose

Returns a string describing the input time interval.

Synopsis

string = besttime(time)

Description

Input (time) is the time interval in seconds to be described and (string) is a character string with the time (in appropriate units).

Examples

out = besttime(95); gives out = '1.6 minutes'
out = besttime(195); gives out = '3.3 minutes'
out = besttime(60); gives out = '1 minutes'
out = besttime(60*60); gives out ='60 minutes'
out = besttime(60*60*24); gives out = '24 hours'

See Also