Time
Inherits Steppable < Comparable < Struct < Value < Object
Time cast methods
Constructors
Creates a new Time instance that corresponds to the number of
seconds elapsed since the Unix epoch (1970-01-01 00:00:00Z).
The time zone is always UTC.
Time.unix(981173106) # => 2001-02-03 04:05:06Z
Creates a new Time instance that corresponds to the number of
milliseconds elapsed since the Unix epoch (1970-01-01 00:00:00Z).
The time zone is always UTC.
time = Time.unix_ms(981173106789) # => 2001-02-03 04:05:06.789Z
time.millisecond # => 789
Instance methods
Returns the Array value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Array value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Bool value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Bool value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Float value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Float32 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Float32 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Float64 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Float64 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Float value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Hash value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Hash value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Int value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Int16 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Int16 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Int32 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Int32 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Int64 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Int64 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Int8 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Int8 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Int value represented by given YAML::Any type, else raise a TypeCastError exception.
Alias to Object.to_s
Returns the Time value represented by given Array type, else raise a TypeCastError exception.
Returns the Time value represented by given Bool type, else raise a TypeCastError exception.
Returns the Time value represented by given Float type, else raise a TypeCastError exception.
Returns the Time value represented by given Hash type, else raise a TypeCastError exception.
Returns the Time value represented by given Int type, else raise a TypeCastError exception.
Returns the Time value represented by given JSON::Any type, else raise a TypeCastError exception.
Returns the Time value represented by given Array type, else raise a TypeCastError exception.
Returns the Time value represented by given Nil type, else raise a TypeCastError exception.
Returns the Time value represented by given String type, else raise a TypeCastError exception.
Returns the Time value represented by given Symbol type, else raise a TypeCastError exception.
Returns the Time value represented by given Time type, else raise a TypeCastError exception.
Returns the Time value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the Time value represented by given Array type, else raise a TypeCastError exception.
Returns the Time value represented by given Bool type, else raise a TypeCastError exception.
Returns the Time value represented by given Float type, else raise a TypeCastError exception.
Returns the Time value represented by given Hash type, else raise a TypeCastError exception.
Returns the Time value represented by given Int type, else raise a TypeCastError exception.
Returns the Time value represented by given JSON::Any type, else raise a TypeCastError exception.
Returns the Time value represented by given Array type, else raise a TypeCastError exception.
Returns the Time value represented by given Nil type, else raise a TypeCastError exception.
Returns the Time value represented by given String type, else raise a TypeCastError exception.
Returns the Time value represented by given Symbol type, else raise a TypeCastError exception.
Returns the Time value represented by given Time type, else raise a TypeCastError exception.
Returns the Time value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the UInt value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the UInt16 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the UInt16 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the UInt32 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the UInt32 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the UInt64 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the UInt64 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the UInt8 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the UInt8 value represented by given YAML::Any type, else raise a TypeCastError exception.
Returns the UInt value represented by given YAML::Any type, else raise a TypeCastError exception.