GDAL

cpl_time.h
1/**********************************************************************
2 *
3 * Name: cpl_time.h
4 * Project: CPL - Common Portability Library
5 * Purpose: Time functions.
6 * Author: Even Rouault, <even dot rouault at spatialys.com>
7 *
8 **********************************************************************
9 * Copyright (c) 2009, Even Rouault <even dot rouault at spatialys.com>
10 *
11 * SPDX-License-Identifier: MIT
12 ****************************************************************************/
13
14#ifndef CPL_TIME_H_INCLUDED
15#define CPL_TIME_H_INCLUDED
16
17#include <time.h>
18
19#include "cpl_port.h"
20
21 struct tm CPL_DLL *CPLUnixTimeToYMDHMS(GIntBig unixTime, struct tm *pRet);
22 GIntBig CPL_DLL CPLYMDHMSToUnixTime(const struct tm *brokendowntime);
23
24 int CPL_DLL CPLParseRFC822DateTime(const char *pszRFC822DateTime, int *pnYear,
25 int *pnMonth, int *pnDay, int *pnHour,
26 int *pnMinute, int *pnSecond, int *pnTZFlag,
27 int *pnWeekDay);
28#endif // CPL_TIME_H_INCLUDED
cpl_port.h
Core portability definitions for CPL.
GIntBig
long long GIntBig
Large signed integer type (generally 64-bit integer type).
Definition cpl_port.h:205