def notify_complete(time_start=None, log_location=''): time_format = '%H:%M:%S %p on %b %d, %Y (%Z)' time_stop = time.strftime(time_format) time_diff = datetime.strptime(time_stop, time_format) - datetime.strptime( time_start, time_format) mmfn.alert_user("Completion time is {0}. Took {1}.".format( time_stop, time_diff)) return
def notify_complete(time_start=None, log_location=''): time_format = '%H:%M:%S %p on %b %d, %Y (%Z)' time_stop = time.strftime(time_format) time_diff = datetime.strptime(time_stop, time_format) - datetime.strptime(time_start, time_format) mmfn.alert_user("Completion time is {0}. Took {1}.".format(time_stop, time_diff)) return
def notify_start(): """Give the user some helpful notes at the launch of the script.""" time_format = '%H:%M:%S %p on %b %d, %Y (%Z)' time_start = time.strftime(time_format) mmfn.alert_user("Start time is {0} ...".format(time_start)) return time_start