@@ -0,0 +1,1434 @@
+#!/usr/bin/python%0A# @author Vsevolod Ivanov%0A%0Aimport pytz%0Aimport datetime%0Aimport argparse%0A%0A__version__ = '0.1'%0A__author__ = u'Vsevolod Ivanov'%0A__appname__ = u'Datetime PyAPI'%0A__description__ = u'i.e.: python datetimes.py --start $(date +%25Y-%25m-%25d-%25H:%25M:%25S) --end-delta 24'%0A%0ADT_FMT = '%25Y-%25m-%25d-%25H:%25M:%25S'%0A%0Adef get_parser():%0A    parser = argparse.ArgumentParser(__appname__, description=__description__)%0A    parser.add_argument('--version', '-v', action='version', version='%25(prog)s '+__version__)%0A    parser.add_argument('--timezone', required=False, type=str, default='America/Montreal',%0A                        help='Timezone string i.e. UTC, American/Montreal')%0A    parser.add_argument('--start-time', '-s', required=True,%0A                        type=lambda s: datetime.datetime.strptime(s, DT_FMT),%0A                        help=%22Start time i.e. '2021-04-05-14:00:00'%22)%0A    parser.add_argument('--end-delta', '-e', required=True, type=int,%0A                        help=%22Delta delay in hours added to start time: i.e. -24, 24%22)%0A    return parser%0A%0Aif __name__ == '__main__':%0A    parser = get_parser()%0A    args = parser.parse_args()%0A    start = args.start_time%0A    now = datetime.datetime.now(pytz.timezone(args.timezone))%0A    end = now + datetime.timedelta(hours=args.end_delta)%0A    print('%5Cn'.join(%5B'Now:      %7B%7D', 'Start:    %7B%7D', 'End:      %7B%7D'%5D).format(%0A          now.strftime(DT_FMT), start.strftime(DT_FMT), end.strftime(DT_FMT)))%0A

add datetimes partay ☼_☼