Changeset f6cb995 in mainline for uspace/lib/posix/time.c


Ignore:
Timestamp:
2012-04-23T22:23:05Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
56b308e
Parents:
8219eb9
Message:

libc: move localtime() from libposix to libc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/time.c

    r8219eb9 rf6cb995  
    353353/**
    354354 * Converts a time value to a broken-down local time.
    355  *
    356  * @param timer Time to convert.
    357  * @return Normalized broken-down time in local timezone, NULL on overflow.
    358  */
    359 struct tm *posix_localtime(const time_t *timer)
    360 {
    361         static struct tm result;
    362         return posix_localtime_r(timer, &result);
    363 }
    364 
    365 /**
    366  * Converts a time value to a broken-down local time.
    367355 *
    368356 * @param timer Time to convert.
     
    419407char *posix_ctime(const time_t *timer)
    420408{
    421         struct tm *loctime = posix_localtime(timer);
     409        struct tm *loctime = localtime(timer);
    422410        if (loctime == NULL) {
    423411                return NULL;
Note: See TracChangeset for help on using the changeset viewer.