GRU - Generic Reusable Utilities
Loading...
Searching...
No Matches
gru_localtime.h
Go to the documentation of this file.
1/*
2 Copyright 2017 Otavio Rodolfo Piske
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16#ifndef GRU_LOCALTIME_H_
17#define GRU_LOCALTIME_H_
18
19#include <time.h>
20
21#if !defined(_WIN32) && !defined(_WIN64)
22#include <sys/time.h>
23#include <unistd.h>
24#else
25#include <windows.h>
26#endif
27
28#include <common/gru_status.h>
29
30gru_export bool
31 gru_localtime(const time_t *timep, struct tm *result, gru_status_t *status);
32
33#endif // GRU_LOCALTIME_H_
gru_export bool gru_localtime(const time_t *timep, struct tm *result, gru_status_t *status)
Definition: gru_localtime.c:18
#define gru_export
Definition: gru_portable.h:19
Status type.
Definition: gru_status.h:47