Index Page
cspice_timdef
A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X 

Abstract
I/O
Examples
Particulars
Required Reading
Version
Index_Entries

Abstract


   CSPICE_TIMDEF sets or returns the current settings for the 
   time subsystem calendar string processing.

   For important details concerning this module's function, please refer to
   the CSPICE routine timdef_c.

I/O

   
   Given:
   
      action   a string, 'GET' or 'SET' defining the action to take
               with regards to the time system
   
                  GET  returns the current setting for 'item' to 
                       the string variable 'value'
                  SET  assigns 'value' of 'item' a time system 
                       element
   
      item     the time system parameter to GET/SET
               if 'action' has the value SET
      value    the parameter for assignment to 'item' if 'action' 
               equals 'SET'
   
   The call:
   
      cspice_timdef, action, item, value
   
   returns:
   
      value   the value of 'item' if 'action' equals 'GET'
   

Examples


   Any numerical results shown for this example may differ between
   platforms as the results depend on the SPICE kernels used as input
   and the machine specific arithmetic implementation.

   
      Example(1):
   
      ITEMS = [ 'CALENDAR', 'SYSTEM', 'ZONE' ]
   
      #
      # As value is a read/write Icy variable, it requires
      # definition prior to the call regardless of whether
      # use is input or output.
      #
      value = ''
   
      for i = 0, 2 do begin
   
         cspice_timdef, 'GET', ITEMS[i], value
         print, ITEMS[i] + ' -> ' + value
   
      endfor
   
   Whereas the call:
   
      cspice_timdef 'SET', name, value
   
   assigns 'value' to 'item'
   
   Example(2);
   
      ;;
      ;; Set the calendar to 'MIXED'
      ;;
      ITEM  = 'CALENDAR'
      VALUE = 'MIXED'
     
      cspice_timdef, 'SET', ITEM, VALUE

Particulars


   None.

Required Reading


   ICY.REQ
   TIME.REQ

Version


   -Icy Version 1.0.0, 16-JUN-2003, EDW (JPL)

Index_Entries


   Change time software defaults.
   Time Zones
   Gregorian and Julian Calendars




Wed Apr  5 17:58:04 2017