#include <iostream>
#include <iomanip>
#include <ctime>
#include <chrono>
using std::chrono::system_clock;
int main()
{
system_clock::time_point now = system_clock::now();
std::time_t now_c = system_clock::to_time_t(
now - std::chrono::hours(24));
std::cout << "One day ago, the time was "
<< std::put_time(std::localtime(&now_c), "%F %T") << '\n';
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW9tYW5pcD4KI2luY2x1ZGUgPGN0aW1lPgojaW5jbHVkZSA8Y2hyb25vPgogCnVzaW5nIHN0ZDo6Y2hyb25vOjpzeXN0ZW1fY2xvY2s7CiAKaW50IG1haW4oKQp7CiAgICBzeXN0ZW1fY2xvY2s6OnRpbWVfcG9pbnQgbm93ID0gc3lzdGVtX2Nsb2NrOjpub3coKTsKICAgIHN0ZDo6dGltZV90IG5vd19jID0gc3lzdGVtX2Nsb2NrOjp0b190aW1lX3QoCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBub3cgLSBzdGQ6OmNocm9ubzo6aG91cnMoMjQpKTsKICAgIHN0ZDo6Y291dCA8PCAiT25lIGRheSBhZ28sIHRoZSB0aW1lIHdhcyAiCiAgICAgICAgICAgICAgPDwgc3RkOjpwdXRfdGltZShzdGQ6OmxvY2FsdGltZSgmbm93X2MpLCAiJUYgJVQiKSA8PCAnXG4nOwp9