GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73364
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
datetime/misc.c File Reference
#include <grass/datetime.h>
Include dependency graph for datetime/misc.c:

Go to the source code of this file.

Functions

int datetime_is_leap_year (int year, int ad)
 
int datetime_days_in_year (int year, int ad)
 returns the number of days in 'year' More...
 
int datetime_days_in_month (int year, int month, int ad)
 returns number of days in 'month' of a particular 'year' More...
 

Function Documentation

int datetime_days_in_month ( int  year,
int  month,
int  ad 
)

returns number of days in 'month' of a particular 'year'

Parameters
month
year
ad
Returns
int

Definition at line 64 of file datetime/misc.c.

References datetime_error(), and datetime_is_leap_year().

Referenced by datetime_check_day().

int datetime_days_in_year ( int  year,
int  ad 
)

returns the number of days in 'year'

Parameters
year
ad
Returns
int

Definition at line 41 of file datetime/misc.c.

References datetime_error(), and datetime_is_leap_year().

Referenced by datetime_change_from_to().

int datetime_is_leap_year ( int  year,
int  ad 
)
Parameters
year
ad
Returns
int

Definition at line 18 of file datetime/misc.c.

References datetime_error().

Referenced by datetime_days_in_month(), and datetime_days_in_year().