struct EasyUtcNow

Defined in:

easy_utc_now.cr

Constant Summary

EPOCH_MSECONDS_TIMESTAMP = 62135596800000_i64

epoch's timestamp in msecond since 0001-01-01 00:00:00

EPOCH_SECONDS_TIMESTAMP = 62135596800_i64

epoch's timestamp in second since 0001-01-01 00:00:00

EPOCH_SECONDS_TIMESTAMP_F64 = 62135596800_f64

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.now_utc_to_unix : Int64 #

Returns an utc epoch current timestamp in second

Time.now_utc_to_unix # => 1452567845

[View source]
def self.now_utc_to_unix_f : Float64 #

Returns an utc epoch current timestamp in second as float64

Time.now_utc_to_unix_f # => 1452567845.876736

[View source]
def self.now_utc_to_unix_ms_f : Float64 #

Returns an utc epoch current timestamp in msecond

Time.now_utc_to_unix_ms # => 1452567845876

[View source]

Instance Method Detail

def initialize #

[View source]