Changeset 7c3fb9b in mainline for uspace/drv/time/cmos-rtc/cmos-rtc.c
- Timestamp:
- 2018-05-17T08:29:01Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ff23ff
- Parents:
- fac0ac7
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/time/cmos-rtc/cmos-rtc.c
rfac0ac7 r7c3fb9b 326 326 327 327 if (rtc->boot_time.tv_sec) { 328 /* There is no need to read the current time from the 328 /* 329 * There is no need to read the current time from the 329 330 * device because it has already been cached. 330 331 */ … … 404 405 405 406 if (t->tm_year < 100) { 406 /* tm_year is the number of years since 1900 but the 407 /* 408 * tm_year is the number of years since 1900 but the 407 409 * RTC epoch is 2000. 408 410 */ … … 497 499 498 500 if (epoch == 2000) { 499 /* The RTC epoch is year 2000 but the tm_year 501 /* 502 * The RTC epoch is year 2000 but the tm_year 500 503 * field counts years since 1900. 501 504 */
Note:
See TracChangeset
for help on using the changeset viewer.