Design Pattern Examples
Overview of object-oriented design patterns
helpers/DateTime.h
Go to the documentation of this file.
1
5
6#pragma once
7#ifndef __DATETIME_H__
8#define __DATETIME_H__
9
10#include <time.h>
11
18const char* datetime_to_string(time_t timestamp);
19
24time_t datetime_now(void);
25
26#endif // __DATETIME_H__
time_t datetime_now(void)
Retrieve a time stamp that represents the current time.
Definition: datetime.c:27
const char * datetime_to_string(time_t timestamp)
Convert the specified time stamp to a string.
Definition: datetime.c:12