GRASS GIS 8 Programmer's Manual
8.5.0dev(2025)-33f29c1d0e
Main Page
Related Pages
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
x
y
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
r
s
t
u
v
w
y
Enumerations
a
c
d
e
h
i
j
l
m
n
o
p
r
s
t
v
y
Enumerator
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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
int
mode
;
/* absolute or relative */
19
int
from
,
to
;
20
int
fracsec
;
/* #decimal place in printed seconds */
21
int
year
,
month
,
day
;
22
int
hour
,
minute
;
23
double
second
;
24
int
positive
;
25
int
tz
;
/* timezone - minutes from UTC */
26
}
DateTime
;
27
28
/* prototype of functions */
29
#include <
grass/defs/datetime.h
>
30
31
#endif
DateTime
struct DateTime DateTime
datetime.h
DateTime
Definition:
datetime.h:17
DateTime::positive
int positive
Definition:
datetime.h:24
DateTime::month
int month
Definition:
datetime.h:21
DateTime::year
int year
Definition:
datetime.h:21
DateTime::mode
int mode
Definition:
datetime.h:18
DateTime::to
int to
Definition:
datetime.h:19
DateTime::second
double second
Definition:
datetime.h:23
DateTime::fracsec
int fracsec
Definition:
datetime.h:20
DateTime::tz
int tz
Definition:
datetime.h:25
DateTime::from
int from
Definition:
datetime.h:19
DateTime::hour
int hour
Definition:
datetime.h:22
DateTime::minute
int minute
Definition:
datetime.h:22
DateTime::day
int day
Definition:
datetime.h:21
include
grass
datetime.h
Generated on Tue Feb 18 2025 07:22:45 for GRASS GIS 8 Programmer's Manual by
1.9.1