From 84a7940382b1c6ced4a3898145153e5a7dd541df Mon Sep 17 00:00:00 2001 From: Jeff Johnston 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 09b648e53..5ddb8f08f 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 d8e687559..40116c285 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