GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sign.c File Reference
#include <grass/datetime.h>
Include dependency graph for sign.c:

Go to the source code of this file.

Functions

int datetime_is_positive (const DateTime *dt)
 Returns: 1 if the Datetime is positive 0 otherwise. More...
 
int datetime_is_negative (const DateTime *dt)
 Returns: 1 if the DateTime is negative 0 otherwise. More...
 
void datetime_set_positive (DateTime *dt)
 Makes the DateTime positive. (A.D. for ABSOLUTE DateTimes) More...
 
void datetime_set_negative (DateTime *dt)
 Makes the DateTime negative. (B.C. for ABSOLUTE DateTimes) More...
 
void datetime_invert_sign (DateTime *dt)
 

Function Documentation

void datetime_invert_sign ( DateTime *  dt)
Parameters
dt
Returns
void

Definition at line 80 of file sign.c.

Referenced by datetime_change_timezone(), and datetime_difference().

int datetime_is_negative ( const DateTime *  dt)

Returns: 1 if the DateTime is negative 0 otherwise.

Parameters
dt
Returns
int

Definition at line 37 of file sign.c.

Referenced by datetime_format().

int datetime_is_positive ( const DateTime *  dt)

Returns: 1 if the Datetime is positive 0 otherwise.

Parameters
dt
Returns
int

Definition at line 21 of file sign.c.

Referenced by datetime_check_day().

void datetime_set_negative ( DateTime *  dt)

Makes the DateTime negative. (B.C. for ABSOLUTE DateTimes)

Parameters
dt
Returns
void

Definition at line 67 of file sign.c.

void datetime_set_positive ( DateTime *  dt)

Makes the DateTime positive. (A.D. for ABSOLUTE DateTimes)

Parameters
dt
Returns
void

Definition at line 52 of file sign.c.