This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import string | |
from time import gmtime, strftime | |
import datetime | |
import dateutil | |
from dateutil.relativedelta import relativedelta | |
def create_date_range(StartDate,EndDate = (datetime.datetime.now().date(),day = -1) : | |
'''Input Start and End Date. day is optional default is month end''' | |
date_range = [] | |
date = datetime.datetime.strptime(StartDate, "%Y-%m-%d").date() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import os | |
import string | |
from time import gmtime, strftime, sleep | |
from datetime import datetime, timedelta | |
import tarfile | |
import subprocess | |
def load_cron(cron_file): |