GDAL

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