Changeset 2194
- Timestamp:
- Oct 25, 2004, 11:41:40 AM (22 years ago)
- Location:
- trunk/doc/pslib
- Files:
-
- 2 edited
-
ChangeLogSDRS.tex (modified) (2 diffs)
-
psLibSDRS.tex (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/ChangeLogSDRS.tex
r2193 r2194 1 %%% $Id: ChangeLogSDRS.tex,v 1. 39 2004-10-25 20:59:03price Exp $1 %%% $Id: ChangeLogSDRS.tex,v 1.40 2004-10-25 21:41:35 price Exp $ 2 2 3 3 \subsection{Changes from version 00 to version 01} … … 354 354 \item Added \code{psLookupTable} section, and removed 355 355 \code{psTimeTableInterpolate} (now redundant). 356 \item Inputs to \code{psTimeAdd}, \code{psTimeSubtract}, 357 \code{psTimeDelta} no longer need to be TAI --- the functions will 358 convert as required. API and requirement changes. 356 \item \code{psTimeAdd} and \code{psTimeSubtract} merged to 357 \code{psTimeMath}. Specified that time differences are expressed in 358 SI seconds (i.e., not including leap seconds). Inputs to 359 \code{psTimeMath} and \code{psTimeDelta} no longer need to be TAI 360 --- the functions will convert from and to UTC as required. 359 361 \end{itemize} -
trunk/doc/pslib/psLibSDRS.tex
r2193 r2194 1 %%% $Id: psLibSDRS.tex,v 1.14 3 2004-10-25 20:59:03price Exp $1 %%% $Id: psLibSDRS.tex,v 1.144 2004-10-25 21:41:40 price Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 3443 3443 3444 3444 \begin{verbatim} 3445 psTime *psTimeAdd(const psTime *time, psF64 delta); 3446 psF64 psTimeSubtract(const psTime *time, psF64 delta); 3445 psTime *psTimeMath(const psTime *time, psF64 delta); 3447 3446 psF64 psTimeDelta(const psTime *time1, const psTime *time2); 3448 3447 \end{verbatim} 3449 \code{psTime Add} adds some time to a \code{psTime}.3450 \code{psTimeSubtract} subtracts two times. \code{psTimeDelta} gives3448 \code{psTimeMath} adds the \code{delta} (in seconds; may be negative) 3449 to a \code{psTime}. \code{psTimeDelta} gives 3451 3450 the difference between times \code{time1} and \code{time2} (which may 3452 3451 be negative). 3453 3452 3453 Note that in both these, the difference between two times is to be 3454 expressed in \textit{SI} seconds, and not inclusive of leap seconds. 3455 For example, if we add 30 seconds to 1998-12-31T23:59:45Z, the result 3456 is 1999-01-01T00:00:14Z, since a leap second was introduced at 3457 1999-01-01T00:00:00Z. 3458 3454 3459 Time math may only be done on the \code{psTime} TAI type, and so the 3455 3460 functions shall internally convert the \code{psTime} inputs to TAI 3456 before performing the math. The type of the time returned by 3457 \code{psTimeAdd} and \code{psTimeSubtract} shall be the same as that 3458 of the input \code{time}. 3461 before performing the math; this is in order that leap seconds are 3462 accounted for. 3463 3464 The type of the time returned by \code{psTimeMath} shall be the same 3465 as that of the input \code{time}. 3466 3459 3467 3460 3468 \subsubsection{Time Tables}
Note:
See TracChangeset
for help on using the changeset viewer.
