GoldyBot.utility.datetime.user_output

 1import datetime
 2
 3def make_time_human(datetime:datetime.datetime, time_format:str="%I:%M%p"):
 4    """A Goldy Bot util function to convert datetime object to human readable form so dumb humans can read it, smh!"""
 5
 6    return datetime.strftime(time_format)
 7
 8def make_date_human(datetime:datetime.datetime, date_format:str="%d/%m/%Y"):
 9    """A Goldy Bot util function to convert datetime object to human readable form so dumb humans can read it, smh!"""
10
11    return datetime.strftime(date_format)
12
13def make_date_and_time_human(datetime:datetime.datetime, datetime_format:str="%d/%m/%Y - %H:%M"):
14    """A Goldy Bot util function to convert datetime object to human readable form so dumb humans can read it, smh!"""
15
16    return datetime.strftime(datetime_format)
def make_time_human(datetime: datetime.datetime, time_format: str = '%I:%M%p'):
4def make_time_human(datetime:datetime.datetime, time_format:str="%I:%M%p"):
5    """A Goldy Bot util function to convert datetime object to human readable form so dumb humans can read it, smh!"""
6
7    return datetime.strftime(time_format)

A Goldy Bot util function to convert datetime object to human readable form so dumb humans can read it, smh!

def make_date_human(datetime: datetime.datetime, date_format: str = '%d/%m/%Y'):
 9def make_date_human(datetime:datetime.datetime, date_format:str="%d/%m/%Y"):
10    """A Goldy Bot util function to convert datetime object to human readable form so dumb humans can read it, smh!"""
11
12    return datetime.strftime(date_format)

A Goldy Bot util function to convert datetime object to human readable form so dumb humans can read it, smh!

def make_date_and_time_human( datetime: datetime.datetime, datetime_format: str = '%d/%m/%Y - %H:%M'):
14def make_date_and_time_human(datetime:datetime.datetime, datetime_format:str="%d/%m/%Y - %H:%M"):
15    """A Goldy Bot util function to convert datetime object to human readable form so dumb humans can read it, smh!"""
16
17    return datetime.strftime(datetime_format)

A Goldy Bot util function to convert datetime object to human readable form so dumb humans can read it, smh!