MeshLib C++ Docs
Loading...
Searching...
No Matches
MRChrono.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRPch/MRBindingMacros.h"
5
6#include <ctime>
7#include <optional>
8
9namespace MR
10{
11
12// A threadsafe equivalent for `std::localtime()`. Returns null on failure.
13[[nodiscard]] MRMESH_API MR_BIND_IGNORE std::optional<std::tm> Localtime( std::time_t time );
14
15// Same, but returns a struct full of zeroes on error.
16[[nodiscard]] MRMESH_API MR_BIND_IGNORE std::tm LocaltimeOrZero( std::time_t time );
17
18}
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:79
Definition MRCameraOrientationPlugin.h:8
MRMESH_API MR_BIND_IGNORE std::tm LocaltimeOrZero(std::time_t time)
MRMESH_API MR_BIND_IGNORE std::optional< std::tm > Localtime(std::time_t time)