Time class of PicoRuby

Type aliases

subsec_unit

:msec | :millisecond | :usec | :microsecond | :nsec | :nanosecond

Singleton methods

at

Time.at((Integer|Time), ?in: String | Integer | nil) -> Time

new

Time.new(?Integer? year, ?Integer? month, ?Integer? day, ?Integer? hour, ?Integer? min, ?Integer? sec, ?String | Integer | nil) -> void
Time.new(?Integer? year, ?Integer? month, ?Integer? day, ?Integer? hour, ?Integer? min, ?Integer? sec, in: String | Integer | nil) -> void
Time.new(String, ?in: string | int | nil, ?precision: int) -> void

local

Time.local(Integer year, ?Integer | String month, ?Integer day, ?Integer hour, ?Integer min, ?Integer sec, ?Integer usec_with_frac) -> Time

mktime

Time.mktime(Integer year, ?Integer | String month, ?Integer day, ?Integer hour, ?Integer min, ?Integer sec, ?Integer usec_with_frac) -> Time

now

Time.now(?in: String | Integer | nil) -> Time

time_methods

Time.time_methods() -> Time::TimeMethods

Instance methods

+

instance.+(Integer arg0) -> Time

-

instance.-(Time arg0) -> Float
instance.-(Integer arg0) -> Time

<

instance.<(Time arg0) -> bool

<=

instance.<=(Time arg0) -> bool

<=>

instance.<=>(Time other) -> Integer
instance.<=>(untyped other) -> Integer?

>

instance.>(Time arg0) -> bool

>=

instance.>=(Time arg0) -> bool

friday?

instance.friday?() -> bool

hour

instance.hour() -> Integer

inspect

instance.inspect() -> String

mday

instance.mday() -> Integer

min

instance.min() -> Integer

mon

instance.mon() -> Integer

monday?

instance.monday?() -> bool

saturday?

instance.saturday?() -> bool

sec

instance.sec() -> Integer

sunday?

instance.sunday?() -> bool

thursday?

instance.thursday?() -> bool

to_f

instance.to_f() -> Float

to_i

instance.to_i() -> Integer

to_s

instance.to_s() -> String

tuesday?

instance.tuesday?() -> bool

usec

instance.usec() -> Integer

wday

instance.wday() -> Integer

wednesday?

instance.wednesday?() -> bool

year

instance.year() -> Integer
Tags: