blob: 435c3d861bb399760d735e5f5fb626a90a16f729 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <stdbool.h>
#include <stddef.h>
#ifndef AK_DATETIME_H
#define AK_DATETIME_H
long ak_datetime_unix();
void ak_datetime_unix_nanosecs(char *buffer, size_t size);
void ak_datetime_human(char *buffer, size_t size);
void ak_datetime_human_date_only(char *buffer, size_t size);
void ak_datetime_human_date_only_yesterday(char *buffer, size_t size);
//static bool is_digits_only(const char *str);
bool ak_datetime_unix_to_human(const char *timestamp_str, char *buffer, size_t size);
#endif // AK_DATETIME_H
|