OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Time.hpp File Reference
#include <string>
#include <ctime>
Include dependency graph for Time.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Slic3r
 |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/
namespace  Slic3r::Utils

Enumerations

enum class  Slic3r::Utils::TimeZone { Slic3r::Utils::local , Slic3r::Utils::utc }
enum class  Slic3r::Utils::TimeFormat { Slic3r::Utils::gcode , Slic3r::Utils::iso8601Z }

Functions

time_t Slic3r::Utils::get_current_time_utc ()
std::string Slic3r::Utils::time2str (const time_t &t, TimeZone zone, TimeFormat fmt)
std::string Slic3r::Utils::time2str (TimeZone zone, TimeFormat fmt)
std::string Slic3r::Utils::utc_timestamp (time_t t)
std::string Slic3r::Utils::utc_timestamp ()
std::string Slic3r::Utils::local_timestamp (TimeFormat fmt=TimeFormat::gcode)
time_t Slic3r::Utils::str2time (const std::string &str, TimeZone zone, TimeFormat fmt)
std::string Slic3r::Utils::iso_utc_timestamp (time_t t)
std::string Slic3r::Utils::iso_utc_timestamp ()
time_t Slic3r::Utils::parse_iso_utc_timestamp (const std::string &str)
std::string Slic3r::Utils::millis_to_iso8601 (long long unix_millis)
long long Slic3r::Utils::iso8601_to_millis (const std::string &iso_time)