module Time::EpochConverter

Defined in:

http-params-serializable/ext/time/epoch_converter.cr

Class Method Summary

Class Method Detail

def self.from_http_param(value : String) : Time #

Parse Time from an HTTP param as unix timestamp.


[View source]
def self.to_http_param(value : Time, builder : HTTP::Params::Builder, key : String) #

Put value as a unix timestamp into the builder at key.


[View source]
def self.to_http_param(value : Time) #

Return value as a unix timestamp string.


[View source]