Files
cariflex/tools/EVerest-main/modules/Simulation/YetiSimulator/util/util.cpp
Eric F d398a6ced2 Add extracted tools: CitrineOS, OpenOCPP, ShapeShifter
- CitrineOS core extracted (CSMS OCPP 2.0.1)
- OpenOCPP extracted (firmware OCPP 1.6J/2.0.1)
- ShapeShifter library installed (pip install -e)
- ShapeShifter specification extracted
- EVerest extracted

TODO updated with progress
2026-06-08 00:38:27 -04:00

24 lines
645 B
C++

// SPDX-License-Identifier: Apache-2.0
// Copyright Pionix GmbH and Contributors to EVerest
#include "util.hpp"
#include <chrono>
#include <ctime>
#include <iomanip>
#include <sstream>
#include <string>
namespace module::util {
std::string get_current_iso_time_string() {
using std::chrono::system_clock;
const auto date = system_clock::to_time_t(system_clock::now());
auto string_stream = std::stringstream{};
// NOLINTNEXTLINE(concurrency-mt-unsafe)
string_stream << std::put_time(gmtime(&date), "%FT%TZ");
const auto iso_time_string = string_stream.str();
return iso_time_string;
}
} // namespace module::util