[AFS3-std] Re: AFS-3 64-bit time I-D

Andrew Deason adeason@sinenomine.net
Fri, 11 Mar 2011 12:01:13 -0600


On Fri, 11 Mar 2011 09:45:03 -0500
Jeffrey Altman <jaltman@secure-endpoints.com> wrote:

> The only thing that I would add is some text describing conversion
> between AFSAbsTime/AFSRelTime and time_t.  In particular, that time_t ->
> AFSAbsTime/AFSRelTime is always 1 second resolution and that
> AFSAbsTime/AFSRelTime -> time_t must always round down and never up.
> 
> Since time resolution information is being included, there should be
> discussion that adding AFSAbsTime (100ns) plus AFSRelTime (1s) should
> result in AFSAbsTime (1s).
> 
> Inclusion of C source code for various operations wouldn't hurt:
> 
>  * AFSAbsTime -> time_t
>  * time_t -> AFSAbsTime
>  * AFSAbsTime + AFSRelTime
>  * AFSAbsTime + AFSAbsTime
>  * AFSAbsTime - AFSAbsTime
>  * AFSAbsTime <=> AFSAbsTime

Before I get too distracted by the other thread: yes, agreed on all of
this. Thanks!

-- 
Andrew Deason
adeason@sinenomine.net