Support special now notation for --end-dt.
@@ -433,6 +433,11 @@ def main():
start_dt = datetime.datetime.strptime(cfg.CONF.start_dt, "%Y-%m-%dT%H:%M:%SZ")
start_dt = start_dt.replace(tzinfo=datetime.timezone.utc)
+
+ if cfg.CONF.end_dt == "now":
+ end_dt = datetime.datetime.utcnow()
+ end_dt = end_dt.replace(tzinfo=datetime.timezone.utc)
+ else:
end_dt = datetime.datetime.strptime(cfg.CONF.end_dt, "%Y-%m-%dT%H:%M:%SZ")
end_dt = end_dt.replace(tzinfo=datetime.timezone.utc)
