cvs commit: src/usr.bin/touch touch.1 touch.c

Tony Finch dot at dotat.at
Tue Apr 10 10:23:12 UTC 2007


On Tue, 10 Apr 2007, Greg 'groggy' Lehey wrote:
>
> The definition of time_t is simply a number of seconds since a
> specified event.

... modulo leap second adjustments.

time_t cannot encode UTC correctly since you need more than a simple
scalar to do so (e.g. you need a TAI offset or a leap second flag).

Tony.
-- 
f.a.n.finch  <dot at dotat.at>  http://dotat.at/
VIKING NORTH UTSIRE SOUTH UTSIRE: WEST OR SOUTHWEST 4 OR 5, OCCASIONALLY 6 OR
7. MODERATE OR ROUGH, OCCASIONALLY VERY ROUGH. OCCASIONAL RAIN OR DRIZZLE.
MODERATE OR GOOD, OCCASIONALLY POOR.


More information about the cvs-src mailing list