Class

Numeric

Extends:

There's no documentation for this item.

Public Methods
day Alias for #days
days Multiples the number by 24 hours
decade Alias for #decades
decades Multiplies the number by 10 years
hour Alias for #hours
hours Multiplies the number by 60 minutes
microsecond Alias for #microseconds
microseconds Divides the number by 1,000,000
millisecond Alias for #milliseconds
milliseconds Divides the number by 1,000
minute Alias for #minutes
minutes Multiplies the number by 60
month Alias for #months
months Multiples the number by 30 days
second Alias for #seconds
seconds Returns the same number as is passed in
to_currency Converts a number to currency. Optionally, it allows localization of currency.
week Alias for #weeks
weeks Multiples the number by 7 days
year Alias for #years
years Multiplies the number by 365 days
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.