module ExpireTime

Overview

convert an expire time into seconds since epoch accepts a Time object or a String in the form of "2018-01-01 12:00:00 +2:00"

Extended Modules

Defined in:

hash_file/expire_time.cr

Instance Method Summary

Instance Method Detail

def is_expired?(epoch_time : Int64 | Nil = Time.now) #

[View source]
def to_epoch(raw_expire : Time) #

[View source]
def to_epoch(raw_expire : String) #

[View source]