GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
interval.c File Reference

DBMI Library (base) - range, interval procedures. More...

#include <grass/dbmi.h>
Include dependency graph for interval.c:

Go to the source code of this file.

Functions

void db_interval_range (int sqltype, int *from, int *to)
 Define range based on SQL data type. More...
 

Detailed Description

DBMI Library (base) - range, interval procedures.

(C) 1999-2009, 2011 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Joel Jones (CERL/UIUC), Radim Blazek
Doxygenized by Martin Landa <landa.martin gmail.com> (2011)

Definition in file interval.c.

Function Documentation

◆ db_interval_range()

void db_interval_range ( int  sqltype,
int *  from,
int *  to 
)

Define range based on SQL data type.

Parameters
sqltypeSQL data type
[out]from
[out]to

Definition at line 24 of file interval.c.

References DB_DAY, DB_FRACTION, DB_HOUR, DB_MINUTE, DB_MONTH, DB_SECOND, DB_SQL_TYPE_DATE, DB_SQL_TYPE_TIME, and DB_YEAR.

Referenced by db_convert_Cstring_to_value_datetime(), db_convert_value_datetime_into_string(), and db_sqltype_name().