Differences From Artifact [f24e945ba2]:
- File src/OFDate.m — part of check-in [cfd374b906] at 2015-01-03 20:57:18 on branch trunk — Update copyright (user: js, size: 12705) [annotate] [blame] [check-ins using]
To Artifact [e749446c20]:
- File
src/OFDate.m
— part of check-in
[989363c9fd]
at
2015-05-16 12:44:31
on branch trunk
— configure: Go back to using -std=gnu*
Using -std=c* causes all kinds of problems with different OSes (some
need a _GNU_SOURCE define when using -std=c*, others simply don't
declare some functions at all due to __STRICT_ANSI__ being defined by
-std=c*). (user: js, size: 12709) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
616 617 618 619 620 621 622 | } - (of_time_interval_t)timeIntervalSinceNow { struct timeval t; of_time_interval_t seconds; | | | 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 | } - (of_time_interval_t)timeIntervalSinceNow { struct timeval t; of_time_interval_t seconds; OF_ENSURE(gettimeofday(&t, NULL) == 0); seconds = t.tv_sec; seconds += (of_time_interval_t)t.tv_usec / 1000000; return _seconds - seconds; } - (OFDate*)dateByAddingTimeInterval: (of_time_interval_t)seconds { return [OFDate dateWithTimeIntervalSince1970: _seconds + seconds]; } @end |