- Timestamp:
- 2008-01-24T22:22:46Z (17 years ago)
- Branches:
- master
- Children:
- b5c8a34
- Parents:
- a882d6c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/misc.c
ra882d6c r613cc55 90 90 struct tm tm; 91 91 92 memset(&tm, 0, sizeof(struct tm)); 92 93 tm.tm_year = year - 1900; 93 94 tm.tm_mon = month - 1; … … 96 97 tm.tm_min = min; 97 98 tm.tm_sec = sec >= 0 ? sec : time(NULL) % 60; 99 98 100 return mktime(&tm); 99 101 }
Note: See TracChangeset
for help on using the changeset viewer.