diff options
| author | Mosder <git@mosder.eu> | 2026-09-15 15:52:47 +0200 |
|---|---|---|
| committer | Mosder <git@mosder.eu> | 2026-09-15 15:52:47 +0200 |
| commit | 451a320920c6e2f60445938aa98d4fe817c3d36a (patch) | |
| tree | 02e6b7bd9a6e2824ef332b0143c98348ff8c85b3 /analyzer/utils/time.c | |
| parent | ad5eb982de97d982bc808ece89903d1113ab9917 (diff) | |
Diffstat (limited to 'analyzer/utils/time.c')
| -rw-r--r-- | analyzer/utils/time.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/analyzer/utils/time.c b/analyzer/utils/time.c index d95da65..740b8e9 100644 --- a/analyzer/utils/time.c +++ b/analyzer/utils/time.c @@ -6,5 +6,14 @@ void get_date_time_string(char *date_time) { time_t now = time(NULL); struct tm *t = localtime(&now); - sprintf(date_time, "%02d%02d%02d_%02d%02d%02d", t->tm_year - 100, t->tm_mon + 1, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec); + sprintf( + date_time, + "%02d%02d%02d_%02d%02d%02d", + t->tm_year - 100, + t->tm_mon + 1, + t->tm_mday, + t->tm_hour, + t->tm_min, + t->tm_sec + ); } |
