From 4c0e6cf20133e3cc0b62ceb71528a77e300749dd Mon Sep 17 00:00:00 2001 From: yellows8 Date: Fri, 5 Oct 2018 19:50:58 -0400 Subject: [PATCH] Updated localtime comment in the time example. --- time/source/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/time/source/main.c b/time/source/main.c index a53087f..21bb572 100644 --- a/time/source/main.c +++ b/time/source/main.c @@ -28,7 +28,7 @@ int main(int argc, char **argv) //Print current time time_t unixTime = time(NULL); - struct tm* timeStruct = gmtime((const time_t *)&unixTime);//Gets UTC time. Currently localtime() will also return UTC (timezones not supported). + struct tm* timeStruct = gmtime((const time_t *)&unixTime);//Gets UTC time. If you want local-time use localtime(). int hours = timeStruct->tm_hour; int minutes = timeStruct->tm_min;