from datetime import datetime, timedelta
import calendar

def deadline_time():
    time_now = datetime.utcnow() #get current UTc time
    return time_now + timedelta(hours=96) #add 96 hours to the current UTC time

def deadline_format(tdo):

    date_after_month = tdo
    new_time_day = date_after_month.strftime('%d')
    new_time_els = date_after_month.strftime('%b %Y %H:%M')
    calendar_date = calendar.day_abbr[date_after_month.weekday()]
    return f'Deadline time: {calendar_date}, {new_time_day} {new_time_els} (UTC)™'

def time_remain_string(deadline):
    time_now = datetime.utcnow()
    delta = deadline - time_now
    return f'{delta.days} days, {delta.seconds//3600} hours and {(delta.seconds//60)%60} minutes'

def format_time(tdo):
    date_after_month = tdo
    new_time_day = date_after_month.strftime('%d')
    new_time_els = date_after_month.strftime('%b %Y %H:%M:%S')
    calendar_date = calendar.day_abbr[date_after_month.weekday()]
    string = str(calendar_date) + ", " + str(new_time_day) + " " + str(new_time_els)
    return string

from datetime import datetime, timedelta
import calendar

def deadline_time():
    time_now = datetime.utcnow() #get current UTc time
    return time_now + timedelta(hours=96) #add 96 hours to the current UTC time

def deadline_format(tdo):

    date_after_month = tdo
    new_time_day = date_after_month.strftime('%d')
    new_time_els = date_after_month.strftime('%b %Y %H:%M')
    calendar_date = calendar.day_abbr[date_after_month.weekday()]
    return f'Deadline time: {calendar_date}, {new_time_day} {new_time_els} (UTC)™'

def time_remain_string(deadline):
    time_now = datetime.utcnow()
    delta = deadline - time_now
    return f'{delta.days} days, {delta.seconds//3600} hours and {(delta.seconds//60)%60} minutes'

def format_time(tdo):
    date_after_month = tdo
    new_time_day = date_after_month.strftime('%d')
    new_time_els = date_after_month.strftime('%b %Y %H:%M:%S')
    calendar_date = calendar.day_abbr[date_after_month.weekday()]
    string = str(calendar_date) + ", " + str(new_time_day) + " " + str(new_time_els)
    return string

#get current UTc time #add 96 hours to the current UTC time