diff options
| author | Inqiyad Sabr <sabr@ariamath.xyz> | 2025-11-18 14:42:04 +0600 |
|---|---|---|
| committer | Inqiyad Sabr <sabr@ariamath.xyz> | 2025-11-18 14:42:04 +0600 |
| commit | ccad4019ce8e83cc7e9f3edb257c78bb51589421 (patch) | |
| tree | 344a0a47e0c0b330105b5d25d7ee9ac8284610f2 /datetime.c | |
| parent | 1a494a95e6436f90d3dfc1ca7647eafcc94e5034 (diff) | |
Fixing all redundancies in code reading, hopefully.
Diffstat (limited to 'datetime.c')
| -rw-r--r-- | datetime.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -8,7 +8,8 @@ #define CT current_time char CD[15]; char CT[29]; -void datetime(void) { +void datetime(void) +{ time_t t = time(NULL); struct tm * lt = localtime(&t); strftime(CD,sizeof(CD),ICON_TIME"%H:%M:%S",lt); |