Table of contents
CSPICE_SPD returns the double precision value of the number
of seconds in a standard calendar day: 86400.
Given:
None.
the call:
spd = cspice_spd( )
returns:
spd the number of seconds in a day: 86400.
help, spd
DOUBLE = Scalar
None.
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.
1) Print the double precision value of the number of seconds in a
standard calendar day.
Example code begins here.
PRO spd_ex1
;;
;; Output the number of seconds per day
;;
print, FORMAT='("Seconds per day: ",F9.1)', cspice_spd()
END
When this program was executed on a Mac/Intel/IDL8.x/64-bit
platform, the output was:
Seconds per day: 86400.0
The function always returns the constant value shown above.
Error free.
None.
None.
ICY.REQ
TIME.REQ
None.
J. Diaz del Rio (ODC Space)
E.D. Wright (JPL)
-Icy Version 1.0.1, 01-JUN-2021 (JDR)
Edited the header to comply with NAIF standard. Added example's
problem statement.
Added -Parameters, -Exceptions, -Files, -Restrictions,
-Literature_References and -Author_and_Institution sections, and
completed -Particulars section.
Removed reference to the routine's corresponding CSPICE header from
-Abstract section.
Added argument's type and size information in the -I/O section.
-Icy Version 1.0.0, 16-JUN-2003 (EDW)
seconds per day
|