147[[gnu::format(strftime, 3, 0)]]
void str_timestamp_format(
char *buffer,
int buffer_size,
const char *format);
161[[gnu::format(strftime, 4, 0)]]
void str_timestamp_ex(time_t time,
char *buffer,
int buffer_size,
const char *format);
174[[gnu::format(strftime, 2, 0)]]
bool timestamp_from_str(
const char *
string,
const char *format, time_t *timestamp);
176#define FORMAT_TIME "%H:%M:%S"
177#define FORMAT_SPACE "%Y-%m-%d %H:%M:%S"
178#define FORMAT_NOSPACE "%Y-%m-%d_%H-%M-%S"
202int str_time(int64_t centisecs,
int format,
char *buffer,
int buffer_size);
218int str_time_float(
float secs,
int format,
char *buffer,
int buffer_size);
std::chrono::nanoseconds time_get_nanoseconds()
Definition time.cpp:24
ETimeSeason
Definition time.h:104
void set_new_tick()
Definition time.cpp:15
int64_t time_freq()
Definition time.cpp:46
int time_houroftheday()
Definition time.cpp:72
ETimeSeason time_season()
Definition time.cpp:110
int64_t time_get()
Definition time.cpp:34
int64_t time_get_impl()
Definition time.cpp:29
@ SEASON_AUTUMN
Definition time.h:107
@ SEASON_WINTER
Definition time.h:108
@ SEASON_SPRING
Definition time.h:105
@ SEASON_HALLOWEEN
Definition time.h:110
@ SEASON_XMAS
Definition time.h:111
@ SEASON_EASTER
Definition time.h:109
@ SEASON_SUMMER
Definition time.h:106
@ SEASON_NEWYEAR
Definition time.h:112
bool timestamp_from_str(const char *string, const char *format, time_t *timestamp)
Definition time.cpp:179
int64_t time_timestamp()
Definition time.cpp:52
void str_timestamp(char *buffer, int buffer_size)
Definition time.cpp:160
int str_time_float(float secs, int format, char *buffer, int buffer_size)
Definition time.cpp:245
void str_timestamp_format(char *buffer, int buffer_size, const char *format)
Definition time.cpp:165
void str_timestamp_ex(time_t time, char *buffer, int buffer_size, const char *format)
Definition time.cpp:172
int str_time(int64_t centisecs, int format, char *buffer, int buffer_size)
Definition time.cpp:198
@ TIME_SECS_CENTISECS
Definition time.h:187
@ TIME_HOURS_CENTISECS
Definition time.h:185
@ TIME_DAYS
Definition time.h:182
@ TIME_MINS
Definition time.h:184
@ TIME_HOURS
Definition time.h:183
@ TIME_MINS_CENTISECS
Definition time.h:186