diff --git a/Documentation/NuttX.html b/Documentation/NuttX.html index 908c927c83..e91143d811 100644 --- a/Documentation/NuttX.html +++ b/Documentation/NuttX.html @@ -1483,6 +1483,7 @@ nuttx-0.4.10 2009-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> typical embeddd system. * sched/: Added gettimeofday(). This implementation is simply a thin wrapper around clock_gettimer(). + * lib/: Add gmtime() and localtime() nuttx-0.4.10 2009-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> diff --git a/Documentation/NuttxUserGuide.html b/Documentation/NuttxUserGuide.html index 7c6bb0f0a3..dbd88cba22 100644 --- a/Documentation/NuttxUserGuide.html +++ b/Documentation/NuttxUserGuide.html @@ -2462,14 +2462,16 @@ VxWorks provides the following comparable interface:
To be provided
.+ Function Prototype: +
++ #include <time.h> + struct tm *gmtime(const time_t *clock); ++
+ Description: +
++ Input Parameters: +
+clock
.
+ Represents calendar time.
+ This is an absolute time value representing the number of seconds elapsed since 00:00:00
+ on January 1, 1970, Coordinated Universal Time (UTC).
++ Returned Values: +
+
+ If successful, the gmtime() function will return the pointer to a statically
+ defined instance of struct tim
.
+ Otherwise, a NULL will be returned to indicate the error:
+
To be provided
.+ #include <time.h> + #define localtime(c) gmtime(c) ++ +
Function Prototype:
@@ -2599,26 +2640,32 @@ VxWorks provides the following comparable interface: Input Parameters:parm
. clock
.
+ Represents calendar time.
+ This is an absolute time value representing the number of seconds elapsed since 00:00:00
+ on January 1, 1970, Coordinated Universal Time (UTC).
+ result
.
+ A user-provided buffer to receive the converted time structure.
Returned Values:
- If successful, the gmtime_r() function will return zero (OK).
- Otherwise, an non-zero error number will be returned to indicate the error:
+ If successful, the gmtime_r() function will return the pointer, result
,
+ provided by the caller.
+ Otherwise, a NULL will be returned to indicate the error:
To be provided
.#include <time.h> #define localtime_r(c,r) gmtime_r(c,r)-
Function Prototype:
@@ -2688,7 +2735,7 @@ VxWorks provides the following comparable interface:CLOCK_REALTIME
is supported for the clockid
argument.Function Prototype:
@@ -2727,7 +2774,7 @@ VxWorks provides the following comparable interface: Comparable to the POSIX interface of the same name. -Function Prototype:
@@ -2810,7 +2857,7 @@ VxWorks provides the following comparable interface:ovalue
argument is ignored.Function Prototype:
@@ -2857,7 +2904,7 @@ VxWorks provides the following comparable interface: Comparable to the POSIX interface of the same name. -Function Prototype:
@@ -2918,7 +2965,7 @@ VxWorks provides the following comparable interface: interface of the same name. -Function Prototype:
@@ -7553,6 +7600,7 @@ notify a task when a message is available on a queue.