GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
datetime.h
Go to the documentation of this file.
1
#ifndef GRASS_DATETIME_H
2
#define GRASS_DATETIME_H
3
4
#define DATETIME_ABSOLUTE 1
5
#define DATETIME_RELATIVE 2
6
7
/* ranges - the values must start at 101 and increase
8
* to make sure they do not interfere with the spatial
9
* units in gis.h */
10
#define DATETIME_YEAR 101
11
#define DATETIME_MONTH 102
12
#define DATETIME_DAY 103
13
#define DATETIME_HOUR 104
14
#define DATETIME_MINUTE 105
15
#define DATETIME_SECOND 106
16
17
typedef
struct
DateTime
18
{
19
int
mode
;
/* absolute or relative */
20
int
from
,
to
;
21
int
fracsec
;
/* #decimal place in printed seconds */
22
int
year
,
month
,
day
;
23
int
hour
,
minute
;
24
double
second
;
25
int
positive
;
26
int
tz
;
/* timezone - minutes from UTC */
27
}
DateTime
;
28
29
/* prototype of functions */
30
#include <
grass/defs/datetime.h
>
31
32
#endif
DateTime::hour
int hour
Definition:
datetime.h:23
DateTime::day
int day
Definition:
datetime.h:22
DateTime::second
double second
Definition:
datetime.h:24
DateTime::from
int from
Definition:
datetime.h:20
DateTime::mode
int mode
Definition:
datetime.h:19
DateTime::year
int year
Definition:
datetime.h:22
DateTime::positive
int positive
Definition:
datetime.h:25
DateTime::fracsec
int fracsec
Definition:
datetime.h:21
datetime.h
DateTime::tz
int tz
Definition:
datetime.h:26
DateTime::month
int month
Definition:
datetime.h:22
DateTime
struct DateTime DateTime
DateTime
Definition:
datetime.h:17
DateTime::to
int to
Definition:
datetime.h:20
DateTime::minute
int minute
Definition:
datetime.h:23
include
grass
datetime.h
Generated on Tue Feb 14 2023 05:55:59 for GRASS GIS 8 Programmer's Manual by
1.8.13