#pragma once // RFC 3339 UTC timestamp, second precision ("2026-09-10T14:55:02Z"). The wire uses this // spelling verbatim for createdAt / lastTryAt / completedAt, so a stored value projects // with no reformatting. #include #include namespace velox::daemon { inline std::string now_iso() { const std::time_t t = std::time(nullptr); std::tm tm{}; ::gmtime_r(&t, &tm); char buf[32]; std::strftime(buf, sizeof(buf), "%Y-%m-%dT%H:%M:%SZ", &tm); return std::string(buf); } } // namespace velox::daemon