#include <iostream>
#include <chrono>
#include <format> // C++20
using namespace std;
using namespace std::chrono;
int main() {
// Get current system time
auto now = system_clock::now();
// Convert to days precision
auto today = floor<days>(now);
// Beginning of the day (00:00:00)
auto start_of_day = today;
// End of the day (23:59:59.999...)
auto end_of_day = today + days{1} - milliseconds{1};
std::cout << "Start: " << std::format("{:%FT%T}", start_of_day) << "Z\n";
std::cout << "End: " << std::format("{:%FT%T}", end_of_day) << "Z\n";
}
/*
run:
Start: 2025-12-12T00:00:00Z
End: 2025-12-12T23:59:59.999Z
*/