GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
#include <grass/datetime.h>
Go to the source code of this file.
Functions | |
int | datetime_set_type (DateTime *dt, int mode, int from, int to, int fracsec) |
int | datetime_get_type (const DateTime *dt, int *mode, int *from, int *to, int *fracsec) |
int | datetime_is_valid_type (const DateTime *dt) |
Returns: 1 if datetime_check_type() returns 0 0 if not. More... | |
int | datetime_check_type (const DateTime *dt) |
checks the mode/from/to/fracsec in dt. Returns: More... | |
int | datetime_in_interval_year_month (int x) |
int | datetime_in_interval_day_second (int x) |
int | datetime_is_absolute (const DateTime *dt) |
Returns: 1 if dt.mode is absolute 0 if not (even if dt.mode is not defined) More... | |
int | datetime_is_relative (const DateTime *dt) |
Returns: 1 if dt.mode is relative 0 if not (even if dt.mode is not defined) More... | |
int datetime_check_type | ( | const DateTime * | dt | ) |
checks the mode/from/to/fracsec in dt. Returns:
dt |
Definition at line 116 of file datetime/type.c.
References DATETIME_ABSOLUTE, datetime_error(), datetime_in_interval_day_second(), datetime_in_interval_year_month(), datetime_is_between(), DATETIME_RELATIVE, DATETIME_SECOND, DATETIME_YEAR, DateTime::fracsec, DateTime::from, DateTime::mode, and DateTime::to.
Referenced by datetime_is_valid_type().
int datetime_get_type | ( | const DateTime * | dt, |
int * | mode, | ||
int * | from, | ||
int * | to, | ||
int * | fracsec | ||
) |
Definition at line 58 of file datetime/type.c.
int datetime_in_interval_day_second | ( | int | x | ) |
Definition at line 156 of file datetime/type.c.
References DATETIME_DAY, datetime_is_between(), and DATETIME_SECOND.
Referenced by datetime_check_type().
int datetime_in_interval_year_month | ( | int | x | ) |
Definition at line 151 of file datetime/type.c.
References datetime_is_between(), DATETIME_MONTH, and DATETIME_YEAR.
Referenced by datetime_check_type().
int datetime_is_absolute | ( | const DateTime * | dt | ) |
Returns: 1 if dt.mode is absolute 0 if not (even if dt.mode is not defined)
dt |
Definition at line 173 of file datetime/type.c.
References DATETIME_ABSOLUTE, and DateTime::mode.
Referenced by datetime_check_timezone(), datetime_format(), datetime_set_month(), and datetime_set_year().
int datetime_is_relative | ( | const DateTime * | dt | ) |
Returns: 1 if dt.mode is relative 0 if not (even if dt.mode is not defined)
dt |
Definition at line 190 of file datetime/type.c.
References DATETIME_RELATIVE, and DateTime::mode.
int datetime_is_valid_type | ( | const DateTime * | dt | ) |
Returns: 1 if datetime_check_type() returns 0 0 if not.
dt |
Definition at line 80 of file datetime/type.c.
References datetime_check_type().
Referenced by datetime_format().
int datetime_set_type | ( | DateTime * | dt, |
int | mode, | ||
int | from, | ||
int | to, | ||
int | fracsec | ||
) |
datetime_check_type
(dt) mode | |
from | |
to | |
fracsec |
Definition at line 37 of file datetime/type.c.
Referenced by datetime_change_timezone(), datetime_get_local_time(), and datetime_get_local_timezone().