module Jq::Time

Defined in:

jq/jq/time.cr

Constant Summary

MONTH_NAMES = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] of ::String
SHORT_MONTH_NAMES = MONTH_NAMES.map(&.[](0..2))

Class Method Summary

Class Method Detail

def self.now(*args, **options) : ::Time #

for backward compatibility


[View source]
def self.parse(year : Int32, month : Int32, day : Int32, hour : Int32 = 0, minute : Int32 = 0, second : Int32 = 0, *args, **opts) #

[View source]
def self.parse(value : String, location : ::Time::Location | Nil = nil) : ::Time #

[View source]
def self.parse?(value : String, location : ::Time::Location | Nil = nil) : ::Time | Nil #

[View source]
def self.utc(*args, **options) : ::Time #

[View source]