ANSI 'C'.

tim at ISM780B.UUCP tim at ISM780B.UUCP
Tue Nov 26 08:55:00 AEST 1985


> times.  They define type "time_t" as an arithmetic type that
> represents the time, and then define a difftime(time_t
> time1,time_t time2) that computes the difference between these
> two arithmetic values.  Why the function?  Does the standard have
> a new arithmetic type on which the operation of subtraction is
> not allowed?

The difftime function first transforms both times to the frame of an observer
at Greenwich (sp?).  It needs to be a function, because the standard
C subtraction operator knows nothing about general relativity.

					Tim Smith
					ihnp4!cithep!tim
					ima!ism780!tim



More information about the Comp.lang.c mailing list