Changeset f6cb995 in mainline for uspace/lib/posix/time.c
- Timestamp:
- 2012-04-23T22:23:05Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 56b308e
- Parents:
- 8219eb9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/time.c
r8219eb9 rf6cb995 353 353 /** 354 354 * 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.367 355 * 368 356 * @param timer Time to convert. … … 419 407 char *posix_ctime(const time_t *timer) 420 408 { 421 struct tm *loctime = posix_localtime(timer);409 struct tm *loctime = localtime(timer); 422 410 if (loctime == NULL) { 423 411 return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.