GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-602118adcc
|
#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 112 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 56 of file datetime/type.c.
int datetime_in_interval_day_second | ( | int | x | ) |
Definition at line 152 of file datetime/type.c.
References DATETIME_DAY, datetime_is_between(), DATETIME_SECOND, and x.
Referenced by datetime_check_increment(), datetime_check_type(), and datetime_increment().
int datetime_in_interval_year_month | ( | int | x | ) |
Definition at line 147 of file datetime/type.c.
References datetime_is_between(), DATETIME_MONTH, DATETIME_YEAR, and x.
Referenced by datetime_check_increment(), and 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 168 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 184 of file datetime/type.c.
References DATETIME_RELATIVE, and DateTime::mode.
Referenced by datetime_check_increment().
int datetime_is_valid_type | ( | const DateTime * | dt | ) |
Returns: 1 if datetime_check_type() returns 0 0 if not.
dt |
Definition at line 77 of file datetime/type.c.
References datetime_check_type().
Referenced by datetime_check_increment(), and 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 36 of file datetime/type.c.
Referenced by datetime_change_timezone(), datetime_get_local_time(), and datetime_get_local_timezone().