Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.stsci.edu/~sontag/spicedocs/cspice/tsetyr_c.html
Дата изменения: Sat Dec 17 06:10:00 2005 Дата индексирования: Mon Apr 11 00:12:01 2016 Кодировка: Поисковые слова: п п п п п п п п п п п |
Set the lower bound on the 100 year range
None.
VARIABLE I/O DESCRIPTION -------- --- -------------------------------------------------- year I Lower bound on the 100 year interval of expansion
year is the year associated with the lower bound on all year expansions computed by texpyr_. For example if year is 1980, then the range of years that can be abbreviated is from 1980 to 2079.
None.
None.
This routine allows all of the SPICE time subsystem to handle uniformly the expansion of "abbreviated" years. (i.e. the remainder after dividing the actual year by 100). The input supplied to this routine represents the lower bound of the expansion interval. The upper bound of the expansion interval is year + 99. The default expansion interval is from 1969 to 2068. The default behavior is as follows year input year Output ---------- ----------- 00 2000 01 2001 . . . . . . 67 2067 68 2068 69 1969 70 1970 . . . . . . 99 1999
Suppose that you need to manipulate time strings and that you want to treat years components in the range from 0 to 99 as being abbreviations for years in the range from 1980 to 2079 (provided that the years are not modified by an ERA substring). The code fragment below shows how you could go about this. Early in your application set up the lower bound for the expansion of abbreviated years. tsetyr_c ( 1980 ); year input year Output ---------- ----------- 00 2000 01 2001 . . . . . . 48 2048 49 2049 . . . . . . 79 2079 80 1980 . . 99 1999
None.
Error free. 1) If year is less than 1 no action is taken
None.
W.L. Taber (JPL) E.D. Wright (JPL)
None.
-CSPICE Version 1.0.0, 11-FEB-1998 (EDW)
Set the interval of expansion for abbreviated years