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

DBMI Library (base) - external data representation (datatime) More...

#include <grass/dbmi.h>
#include "macros.h"
Include dependency graph for xdrdatetime.c:

Go to the source code of this file.

Functions

int db__send_datetime (dbDateTime *t)
 Send datetime. More...
 
int db__recv_datetime (dbDateTime *t)
 Receive datetime. More...
 

Detailed Description

DBMI Library (base) - external data representation (datatime)

(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, Brad Douglas, Markus Neteler
Doxygenized by Martin Landa <landa.martin gmail.com> (2011)

Definition in file xdrdatetime.c.

Function Documentation

◆ db__recv_datetime()

int db__recv_datetime ( dbDateTime t)

Receive datetime.

Parameters
tpointer to dbDateTime
Returns
DB_OK

Definition at line 47 of file xdrdatetime.c.

References _db_date_time::current, _db_date_time::day, DB_OK, DB_RECV_CHAR, DB_RECV_DOUBLE, DB_RECV_INT, _db_date_time::hour, _db_date_time::minute, _db_date_time::month, _db_date_time::seconds, and _db_date_time::year.

◆ db__send_datetime()

int db__send_datetime ( dbDateTime t)