module Dates

Defined in:

dates.cr

Instance Method Summary

Instance Method Detail

def calculate_created_time_ago(created_at : Time) : String #

[View source]
def format_date_time(date_time : Time) : String #

[View source]
def parse_date_time(formatted_time : String) : Time #

[View source]
def prepare_date_range_different_days(starting_time : String, ending_time : String | Nil = Time.utc.to_s) : Tuple(Time, Time) #

[View source]
def prepare_date_range_same_day(date : String | Nil = Time.utc.to_s) : Tuple(Time, Time) #

[View source]
def set_end_date(end_time : String | Nil) : String #

[View source]