GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
local.c File Reference
#include <time.h>
#include <grass/datetime.h>
Include dependency graph for local.c:

Go to the source code of this file.

Functions

struct tm * localtime ()
 
struct tm * gmtime ()
 
int datetime_get_local_timezone (int *minutes)
 Returns: 0 OK -1 local timezone info not available. More...
 
void datetime_get_local_time (DateTime *dt)
 set mode/from/to ABSOLUTE/YEAR/SECOND set the local time into 'dt' does not set timezone. More...
 

Function Documentation

◆ datetime_get_local_time()

void datetime_get_local_time ( DateTime dt)

set mode/from/to ABSOLUTE/YEAR/SECOND set the local time into 'dt' does not set timezone.

Parameters
dt
Returns
void

Definition at line 87 of file local.c.

References DATETIME_ABSOLUTE, DATETIME_SECOND, datetime_set_day(), datetime_set_hour(), datetime_set_minute(), datetime_set_month(), datetime_set_second(), datetime_set_type(), datetime_set_year(), DATETIME_YEAR, and localtime().

◆ datetime_get_local_timezone()

◆ gmtime()

struct tm* gmtime ( )

◆ localtime()

struct tm* localtime ( )