struct Time

Overview

Time cast methods

Included Modules

Defined in:

popcorn/ext/time_epoch.cr

Constructors

Instance Method Summary

Constructor Detail

def self.epoch(seconds : Int, location = Location::UTC) : Time #

[View source]
def self.epoch_ms(milliseconds : Int, location = Location::UTC) : Time #

[View source]

Instance Method Detail

def to_bool #

def to_bool? #

def to_float #

def to_float32 #

def to_float32? #

def to_float64 #

def to_float64? #

def to_float? #

def to_int #

def to_int16 #

def to_int16? #

def to_int32 #

def to_int32? #

def to_int64 #

def to_int64? #

def to_int8 #

def to_int8? #

def to_int? #

def to_string #

Alias to Object.to_s


def to_time(location : Time::Location = Time::Location::UTC, formatters : Array(String) | Nil = nil) #

def to_time?(location : Time::Location = Time::Location::UTC, formatters : Array(String) | Nil = nil) #

def to_uint #

def to_uint16 #

def to_uint16? #

def to_uint32 #

def to_uint32? #

def to_uint64 #

def to_uint64? #

def to_uint8 #

def to_uint8? #

def to_uint? #