Besttime: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(New page: ===Purpose=== Returns a string describing the time interval provided (in seconds). ===Synopsis=== :string = besttime(time) ===Description=== Input (time) is the time interval to be de...)
 
imported>Neal
No edit summary
 
Line 1: Line 1:
===Purpose===
===Purpose===


Returns a string describing the time interval provided (in seconds).
Returns a string describing the input time interval.


===Synopsis===
===Synopsis===
Line 9: Line 9:
===Description===
===Description===


Input (time) is the time interval to be described (in seconds) string is the output string (eg. 95 seconds gives "1.5 minutes")
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===
===See Also===

Latest revision as of 12:51, 25 September 2008

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