GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-d6dec75dd4
|
#include <grass/datetime.h>
Go to the source code of this file.
Functions | |
int | datetime_is_valid_increment (const DateTime *src, const DateTime *incr) |
Returns: datetime_check_increment(src, incr) == 0. More... | |
int | datetime_check_increment (const DateTime *src, const DateTime *incr) |
This checks if the type of 'incr' is valid for incrementing/decrementing 'src'. The type (mode/from/to) of the 'src' can be anything. The incr.mode must be RELATIVE A timezone in 'src' is allowed - it's presence is ignored. To aid in setting the 'incr' type, see datetime_get_increment_type(). Returns: More... | |
This checks if the type of 'incr' is valid for incrementing/decrementing 'src'. The type (mode/from/to) of the 'src' can be anything. The incr.mode must be RELATIVE A timezone in 'src' is allowed - it's presence is ignored. To aid in setting the 'incr' type, see datetime_get_increment_type(). Returns:
src | |
incr |
Definition at line 58 of file incr2.c.
References datetime_error(), datetime_in_interval_day_second(), datetime_in_interval_year_month(), datetime_is_relative(), datetime_is_valid_type(), src, and DateTime::to.
Referenced by datetime_is_valid_increment().
Returns: datetime_check_increment(src, incr) == 0.
src | |
incr |
Definition at line 20 of file incr2.c.
References datetime_check_increment(), and src.
Referenced by datetime_increment().