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

Go to the source code of this file.

Functions

int datetime_format (const DateTime *dt, char *buf)
 formats DateTime structure as a human-readable string returns 0 when successful and 'buf' is filled with the string returns a negative number on error More...
 

Function Documentation

◆ datetime_format()

int datetime_format ( const DateTime dt,
char *  buf 
)

formats DateTime structure as a human-readable string returns 0 when successful and 'buf' is filled with the string returns a negative number on error

Parameters
dt
buf
Returns
int

Definition at line 28 of file datetime/format.c.

References datetime_error_code(), datetime_get_day(), datetime_get_month(), datetime_is_absolute(), and datetime_is_valid_type().