1 c78aac30 2024-04-12 continue #!python3
2 501dbdc1 2023-10-12 continue import sys, os, datetime
4 501dbdc1 2023-10-12 continue # python3 mtime_iso.py capsule/squat/reports/aarch64_exception_model.gmi
5 501dbdc1 2023-10-12 continue if len(sys.argv) == 2:
6 501dbdc1 2023-10-12 continue tz = datetime.datetime.now(datetime.timezone.utc).astimezone().tzinfo
7 c78aac30 2024-04-12 continue print(datetime.datetime.fromtimestamp(os.stat(sys.argv[1]).st_mtime, tz=tz).astimezone(datetime.timezone.utc).isoformat())
9 501dbdc1 2023-10-12 continue print(f"Usage: {sys.argv[0]} <path>", file=sys.stderr)
10 501dbdc1 2023-10-12 continue sys.exit(1)