From a1698a1f195ecb54ad2ffe16859efe73e0925569 Mon Sep 17 00:00:00 2001 From: jjohnstn Date: Thu, 17 Aug 2006 15:53:15 +0000 Subject: [PATCH] 2006-08-17 Brian Ford * libc/time/gmtime.c: Correct man page; clock is not a local time and no conversion occurs. --- newlib/ChangeLog | 5 +++++ newlib/libc/time/gmtime.c | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 09b648e53e..5ddb8f08f1 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2006-08-17 Brian Ford + + * libc/time/gmtime.c: Correct man page; clock is not a + local time and no conversion occurs. + 2006-08-16 Joel Schopp * configure.host (newlib_cflags) [spu]: Add special compiler diff --git a/newlib/libc/time/gmtime.c b/newlib/libc/time/gmtime.c index d8e6875593..40116c2858 100644 --- a/newlib/libc/time/gmtime.c +++ b/newlib/libc/time/gmtime.c @@ -29,11 +29,11 @@ TRAD_SYNOPSIS struct tm *<[res]>; DESCRIPTION -<> assumes the time at <[clock]> represents a local time. -<> converts it to UTC (Universal Coordinated Time, also known in some -countries as GMT, Greenwich Mean time), then converts the -representation from the arithmetic representation to -the traditional representation defined by <>. +<> takes the time at <[clock]> representing the number +of elapsed seconds since 00:00:00 on January 1, 1970, Universal +Coordinated Time (UTC, also known in some countries as GMT, +Greenwich Mean time) and converts it to a <> +representation. <> constructs the traditional time representation in static storage; each call to <> or <> will overwrite the -- 2.11.0