7 #include <grass/datetime.h>
42 int *to,
int *fracsec)
47 *mode = DATETIME_RELATIVE;
49 *fracsec = dt->fracsec;
53 *from = DATETIME_YEAR;
87 int mode, from, to, fracsec;
int datetime_set_type(DateTime *dt, int mode, int from, int to, int fracsec)
int datetime_error_code(void)
returns an error code
int datetime_is_absolute(const DateTime *dt)
Returns: 1 if dt.mode is absolute 0 if not (even if dt.mode is not defined)
int datetime_is_valid_type(const DateTime *dt)
Returns: 1 if datetime_check_type() returns 0 0 if not.
int datetime_get_increment_type(const DateTime *dt, int *mode, int *from, int *to, int *fracsec)
This returns the components of a type (mode/from/to/fracsec) that can be used to construct a DateTime...
int datetime_in_interval_year_month(int x)
int datetime_set_increment_type(const DateTime *src, DateTime *incr)
src must be legal This is a convenience routine which is implemented as follows: