Module Chronos::Numeric::Gregorian
In: lib/chronos/numeric/gregorian.rb

Methods

centuries   century   day   days   decade   decades   hour   hours   microsecond   microseconds   millisecond   milliseconds   minute   minutes   month   months   nanosecond   nanoseconds   picosecond   picoseconds   second   seconds   week   weeks   year   years  

Public Instance methods

Get a duration of the receivers amount of centuries

[Source]

    # File lib/chronos/numeric/gregorian.rb, line 90
90:       def centuries(language)
91:         ::Chronos::Duration::Gregorian.new(self*1200, 0, 0, language)
92:       end
century(language)

Alias for centuries

day(language)

Alias for days

Get a duration of the receivers amount of days

[Source]

    # File lib/chronos/numeric/gregorian.rb, line 60
60:       def days(language)
61:         ::Chronos::Duration::Gregorian.new(0, self, 0, language)
62:       end
decade(language)

Alias for decades

Get a duration of the receivers amount of decades

[Source]

    # File lib/chronos/numeric/gregorian.rb, line 84
84:       def decades(language)
85:         ::Chronos::Duration::Gregorian.new(self*144, 0, 0, language)
86:       end
hour(language)

Alias for hours

Get a duration of the receivers amount of hours

[Source]

    # File lib/chronos/numeric/gregorian.rb, line 54
54:       def hours(language)
55:         ::Chronos::Duration::Gregorian.new(0, 0, self*::Chronos::PS_IN_HOUR, language)
56:       end
microsecond(language)

Alias for microseconds

Get a duration of the receivers amount of microseconds

[Source]

    # File lib/chronos/numeric/gregorian.rb, line 30
30:       def microseconds(language)
31:         ::Chronos::Duration::Gregorian.new(0, 0, self*::Chronos::PS_IN_MICROSECOND, language)
32:       end
millisecond(language)

Alias for milliseconds

Get a duration of the receivers amount of milliseconds

[Source]

    # File lib/chronos/numeric/gregorian.rb, line 36
36:       def milliseconds(language)
37:         ::Chronos::Duration::Gregorian.new(0, 0, self*::Chronos::PS_IN_MILLISECOND, language)
38:       end
minute(language)

Alias for minutes

Get a duration of the receivers amount of minutes

[Source]

    # File lib/chronos/numeric/gregorian.rb, line 48
48:       def minutes(language)
49:         ::Chronos::Duration::Gregorian.new(0, 0, self*::Chronos::PS_IN_MINUTE, language)
50:       end
month(language)

Alias for months

Get a duration of the receivers amount of months

[Source]

    # File lib/chronos/numeric/gregorian.rb, line 72
72:       def months(language)
73:         ::Chronos::Duration::Gregorian.new(self, 0, 0, language)
74:       end
nanosecond(language)

Alias for nanoseconds

Get a duration of the receivers amount of nanoseconds

[Source]

    # File lib/chronos/numeric/gregorian.rb, line 24
24:       def nanoseconds(language)
25:         ::Chronos::Duration::Gregorian.new(0, 0, self*::Chronos::PS_IN_NANOSECOND, language)
26:       end
picosecond(language)

Alias for picoseconds

Get a duration of the receivers amount of picoseconds

[Source]

    # File lib/chronos/numeric/gregorian.rb, line 18
18:       def picoseconds(language)
19:         ::Chronos::Duration::Gregorian.new(0, 0, self, 0, language)
20:       end
second(language)

Alias for seconds

Get a duration of the receivers amount of seconds

[Source]

    # File lib/chronos/numeric/gregorian.rb, line 42
42:       def seconds(language)
43:         ::Chronos::Duration::Gregorian.new(0, 0, self*::Chronos::PS_IN_SECOND, language)
44:       end
week(language)

Alias for weeks

Get a duration of the receivers amount of weeks

[Source]

    # File lib/chronos/numeric/gregorian.rb, line 66
66:       def weeks(language)
67:         ::Chronos::Duration::Gregorian.new(0, self*7, 0, language)
68:       end
year(language)

Alias for years

Get a duration of the receivers amount of years

[Source]

    # File lib/chronos/numeric/gregorian.rb, line 78
78:       def years(language)
79:         ::Chronos::Duration::Gregorian.new(self*12, 0, 0, language)
80:       end

[Validate]