Changeset 5b3394c in mainline for uspace/lib/c/generic/time.c
- Timestamp:
 - 2012-04-23T21:54:49Z (14 years ago)
 - Branches:
 - lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
 - Children:
 - 8219eb9
 - Parents:
 - c2b0e10
 - File:
 - 
      
- 1 edited
 
- 
          
  uspace/lib/c/generic/time.c (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
uspace/lib/c/generic/time.c
rc2b0e10 r5b3394c 776 776 } 777 777 778 struct tm *gmtime(const time_t *timer) 779 { 780 assert(timer != NULL); 781 782 static struct tm result; 783 784 /* Set result to epoch. */ 785 result.tm_sec = 0; 786 result.tm_min = 0; 787 result.tm_hour = 0; 788 result.tm_mday = 1; 789 result.tm_mon = 0; 790 result.tm_year = 70; /* 1970 */ 791 792 if (_normalize_time(&result, *timer) == -1) { 793 errno = EOVERFLOW; 794 return NULL; 795 } 796 797 return &result; 798 799 } 800 778 801 779 802 /** @}  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  