File indexing completed on 2024-04-21 05:41:32

0001 /*
0002     SPDX-FileCopyrightText: 2017 Maxim Golov <maxim.golov@gmail.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-or-later
0005 */
0006 
0007 #include <time.h>
0008 #include <stdlib.h>
0009 
0010 int main(int argc, char **argv)
0011 {
0012     time_t t = time(0);
0013     struct tm tmbuf;
0014     gmtime_r(&t, &tmbuf);
0015     char buf[16];
0016     strftime(buf, sizeof(buf), "%d", &tmbuf);
0017 }