IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 21, 2004, 2:14:20 PM (22 years ago)
Author:
Paul Price
Message:

Changes to psTime math.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/psLibSDRS.tex

    r2189 r2190  
    1 %%% $Id: psLibSDRS.tex,v 1.141 2004-10-21 22:52:38 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.142 2004-10-22 00:14:20 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    34413441\begin{verbatim}
    34423442psTime *psTimeAdd(const psTime *time, psF64 delta);
    3443 psF64 psTimeSubtract(const psTime *time1, const psTime *time2);
     3443psF64 psTimeSubtract(const psTime *time, psF64 delta);
    34443444psF64 psTimeDelta(const psTime *time1, const psTime *time2);
    34453445\end{verbatim}
    34463446\code{psTimeAdd} adds some time to a \code{psTime}.
    34473447\code{psTimeSubtract} subtracts two times.  \code{psTimeDelta} gives
    3448 the absolute time difference between two times.
     3448the difference between times \code{time1} and \code{time2} (which may
     3449be negative).
    34493450
    34503451Time math may only be done on the \code{psTime} TAI type, and so the
    34513452functions shall internally convert the \code{psTime} inputs to TAI
    34523453before performing the math.  The type of the time returned by
    3453 \code{psTimeAdd} shall be the same as that of the input \code{time}.
     3454\code{psTimeAdd} and \code{psTimeSubtract} shall be the same as that
     3455of the input \code{time}.
    34543456
    34553457\subsubsection{Time Tables}
Note: See TracChangeset for help on using the changeset viewer.