25 lines
500 B
Markdown

# 45-haskell-time-windows
This example shows maintenance-window status checks with `Data.Time`.
It includes:
- one set of UTC maintenance windows,
- functions that parse timestamps and classify whether a window is active or still upcoming, and
- a test suite run by `nix flake check`.
Useful commands:
```bash
nix develop
cabal run
cabal run -- 2026-05-05T11:45:00Z
cabal test
nix build
./result/bin/mini-time-windows 2026-05-05T11:45:00Z
nix run . -- 2026-05-05T11:45:00Z
nix flake check
```