GRASS GIS 8 Programmer's Manual  8.4.0dev(2024)-112dd97adf
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 26 of file datetime/format.c.

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