def cur_time(typ='<STR_LIT:date>', tz=DEFAULT_TZ) -> (datetime.date, str):
dt = pd.Timestamp('<STR_LIT>', tz=tz)<EOL>if typ == '<STR_LIT:date>': return dt.strftime('<STR_LIT>')<EOL>if typ == '<STR_LIT:time>': return dt.strftime('<STR_LIT>')<EOL>if typ == '<STR_LIT>': return dt.strftime('<STR_LIT>')<EOL>if typ == '<STR_LIT>': return dt<EOL>return dt.date()<EOL>
Current time

Args:
    typ: one of ['date', 'time', 'time_path', 'raw', '']
    tz: timezone

Returns:
    relevant current time or date

Examples:
    >>> cur_dt = pd.Timestamp('now')
    >>> cur_time(typ='date') == cur_dt.strftime('%Y-%m-%d')
    True
    >>> cur_time(typ='time') == cur_dt.strftime('%Y-%m-%d %H:%M:%S')
    True
    >>> cur_time(typ='time_path') == cur_dt.strftime('%Y-%m-%d/%H-%M-%S')
    True
    >>> isinstance(cur_time(typ='raw', tz='Europe/London'), pd.Timestamp)
    True
    >>> cur_time(typ='') == cur_dt.date()
    True