module CrystalGauntlet::Format

Extended Modules

Defined in:

lib/format.cr

Constant Summary

TIME_FORMAT = "%Y-%m-%d %H:%M:%S"
TIME_FORMAT_GD_FRIENDLY = "%d/%m/%Y %H.%M"

used when sending back to the client as an absolute date

TIME_FORMAT_USER_FRIENDLY = "%d/%m/%Y %H:%M"

safe to send back in comments

Instance Method Summary

Instance Method Detail

def fmt_comment(hash) : String #

[View source]
def fmt_hash(hash) : String #

[View source]
def fmt_song(hash) : String #

[View source]
def fmt_time(s : Time, colon_safe = false) : String #

[View source]
def fmt_timespan(s : Time::Span) : String #

[View source]
def fmt_timespan_bit(n : Int, s : String) : String | Nil #

[View source]
def fmt_timespan_long(s : Time::Span) : String #

[View source]
def fmt_value(v, colon_safe = false, tilda_safe = false, pipe_safe = false) : String #

[View source]