Differences From Artifact [715fe07d58]:
- File src/OFDate.m — part of check-in [49ec1216cd] at 2011-09-21 20:11:38 on branch trunk — More precision for microseconds. (user: js, size: 11449) [annotate] [blame] [check-ins using]
To Artifact [a20bfc7333]:
- File
src/OFDate.m
— part of check-in
[45b499fb11]
at
2011-09-22 02:20:18
on branch trunk
— Use rint() instead of nearbyint().
nearbyint() is missing on some systems, even though it is part of C99
and POSIX. (user: js, size: 11444) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
371 372 373 374 375 376 377 | [element autorelease]; return element; } - (uint32_t)microsecond { | | | 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 | [element autorelease]; return element; } - (uint32_t)microsecond { return (uint32_t)rint((seconds - floor(seconds)) * 1000000); } - (uint8_t)second { GMTIME_RET(tm_sec) } |
︙ | ︙ |