Besttime

From Eigenvector Documentation Wiki
Jump to: navigation, search

Contents

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

Views
Personal tools