utils/files_operations.py
def beforeNday(n, timestr=None):
    """Calculate the next day of the given date."""
    if not timestr: timestr = time.strftime("%Y-%m-%d", time.localtime())
    date = datetime.datetime.strptime(timestr, '%Y-%m-%d').date()
    return (date + datetime.timedelta(-n)).strftime('%Y-%m-%d')
Calculate the next day of the given date.
Calculate the next day of the given date.
Calculate the next day of the given date .
def beforeNday(n, timestr=None):
    if not timestr: timestr = time.strftime("%Y-%m-%d", time.localtime())
    date = datetime.datetime.strptime(timestr, '%Y-%m-%d').date()
    return (date + datetime.timedelta(-n)).strftime('%Y-%m-%d')
def beforeNday ( n , timestr = None ) : if not timestr : timestr = time . strftime ( "%Y-%m-%d" , time . localtime ( ) ) date = datetime . datetime . strptime ( timestr , '%Y-%m-%d' ) . date ( ) return ( date + datetime . timedelta ( - n ) ) . strftime ( '%Y-%m-%d' )
Calculate the next day of the given date.
Calculate the next day of the given date .
"""Calculate the next day of the given date."""
n
timestr