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:
  • 2.7.2 clock_gettime
  • 2.7.3 clock_getres
  • 2.7.4 mktime
  • -
  • 2.7.5 gmtime_r
  • -
  • 2.7.6 localtime_r
  • -
  • 2.7.7 timer_create
  • -
  • 2.7.8 timer_delete
  • -
  • 2.7.9 timer_settime
  • -
  • 2.7.10 timer_gettime
  • -
  • 2.7.11 timer_getoverrun
  • -
  • 2.7.12 gettimeofday
  • +
  • 2.7.5 gmtime
  • +
  • 2.7.6 localtime
  • +
  • 2.7.7 gmtime_r
  • +
  • 2.7.8 localtime_r
  • +
  • 2.7.9 timer_create
  • +
  • 2.7.10 timer_delete
  • +
  • 2.7.11 timer_settime
  • +
  • 2.7.12 timer_gettime
  • +
  • 2.7.13 timer_getoverrun
  • +
  • 2.7.14 gettimeofday
  • 2.7.1 clock_settime

    @@ -2584,7 +2586,46 @@ VxWorks provides the following comparable interface:
  • To be provided.
  • -

    2.7.5 gmtime_r

    +

    2.7.5 gmtime

    +

    + Function Prototype: +

    +
    +    #include <time.h>
    +    struct tm *gmtime(const time_t *clock);
    +
    +

    + Description: +

    +

    + Input Parameters: +

    + +

    + 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: +

    + + +

    2.7.6 localtime

    +
    +    #include <time.h>
    +    #define localtime(c) gmtime(c)
    +
    + +

    2.7.7 gmtime_r

    Function Prototype:

    @@ -2599,26 +2640,32 @@ VxWorks provides the following comparable interface: Input Parameters:

    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:

    -

    2.7.6 localtime_r

    +

    2.7.8 localtime_r

         #include <time.h>
         #define localtime_r(c,r) gmtime_r(c,r)
     
    -

    2.7.7 timer_create

    +

    2.7.9 timer_create

    Function Prototype:

    @@ -2688,7 +2735,7 @@ VxWorks provides the following comparable interface:
  • Only CLOCK_REALTIME is supported for the clockid argument.
  • -

    2.7.8 timer_delete

    +

    2.7.10 timer_delete

    Function Prototype:

    @@ -2727,7 +2774,7 @@ VxWorks provides the following comparable interface: Comparable to the POSIX interface of the same name.

    -

    2.7.9 timer_settime

    +

    2.7.11 timer_settime

    Function Prototype:

    @@ -2810,7 +2857,7 @@ VxWorks provides the following comparable interface:
  • The ovalue argument is ignored.
  • -

    2.7.10 timer_gettime

    +

    2.7.12 timer_gettime

    Function Prototype:

    @@ -2857,7 +2904,7 @@ VxWorks provides the following comparable interface: Comparable to the POSIX interface of the same name.

    -

    2.7.11 timer_getoverrun

    +

    2.7.13 timer_getoverrun

    Function Prototype:

    @@ -2918,7 +2965,7 @@ VxWorks provides the following comparable interface: interface of the same name.

    -

    2.7.12 gettimeofday

    +

    2.7.14 gettimeofday

    Function Prototype:

    @@ -7553,6 +7600,7 @@ notify a task when a message is available on a queue.
  • getpid
  • gets
  • getsockopt
  • +
  • gmtime
  • gmtime_r
  • Introduction
  • ioctl