The Gaudi Framework
v40r0 (475e45c1)
time_r.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
#pragma once
12
13
#include <ctime>
14
15
/*
16
This header file provides the functions localtime_r and time_r (available on Linux)
17
to the Win32 platform.
18
19
Marco Clemencic
20
*/
21
22
#ifdef _WIN32
23
24
extern
"C"
{
25
inline
struct
tm* localtime_r(
const
time_t* sec,
struct
tm* result ) {
26
localtime_s( result, sec );
27
return
result;
28
}
29
inline
struct
tm* gmtime_r(
const
time_t* sec,
struct
tm* result ) {
30
gmtime_s( result, sec );
31
return
result;
32
}
33
}
34
35
#endif
GaudiKernel
include
GaudiKernel
time_r.h
Generated on Thu Jul 3 2025 15:27:24 for The Gaudi Framework by
1.8.18