RE: nfstime4 data type

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: lance@eco.twg.com
Date: 07/28/98-08:54:44 AM Z


From: lance@eco.twg.com
Subject: RE: nfstime4 data type
Date: Tue, 28 Jul 1998 09:54:44 -0400
Message-ID: <E1CBD72DEEFDD011914400608CBA63D11621B6@exch-mcl1.eco.twg.com>

> From: Mike Eisler [mailto:mre@eng.sun.com]
> >
> > Sorry, I did not follow closely the time discussion and may
> be I missed the
> > answer for another  question.
> >
> > nseconds is unsigned. If my seconds value is negative, do I
> have to add or
> > subtract nseconds?
> >
> > Even if missed this answer, we have to add it to the draft.
>
> i don't think you missed the answerm but if seconds is
> negative, I think
> nseconds should be interpreted as negative as well. i agree that
> the i-d should note this.

Time for another clarification.

Since nseconds is unsigned, then mike's 'interpreted as negative' could only
mean that nseconds should be subtracted from seconds when seconds are
negative.

So how do you represent a number between 0 and -1 second?

(-1 seconds) - (any positive nseconds) is always more negative then (-1
seconds)

Which won't work.

Therefore, since nseconds is unsigned, then it must always be added to
seconds.

For example, -1ns would be seconds = -1, and nseconds = 999,999,999


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.2 : 03/04/05-01:46:07 AM Z CST