All languages

Python for DevOps

You're viewing a free preview. Sign in free to read every script.

Why this exists Time is in almost every operations task: log timestamps, retention policies ("delete files older than 30 days"), certificate expiry, backup schedules, SLAs, outage durations. It is also where scripts…

Python for DevOps: Dates, Times, Time Zones, timedelta and ISO 8601 Without Surprises

Handle time correctly in scripts: naive versus aware datetimes, storing UTC and converting only to display, parsing and formatting, retention cutoffs and durations with timedelta, days until certificate expiry, daylight-saving traps and per-minute bucketing, with real output.

Sign in free to read this script, along with the rest of the library.

Sign in free