void sprint_time ( char *  at,
TIME  t,
char *  zone,
int  precision 

Converts an internal representation of time into a string representation of time.

Writes a string corresponding to the elapsed time t into the location str, making the appropriate conversions for the clock system designated by zone. The precision of the clock seconds field is controlled by the precision parameter, which determines the number of digits written beyond the decimal point. Negative values of precision result in suppression of increasing numbers of clock and date fields, up to values of -5. For example, a precision of -1 will suppress the seconds field, and a precision of -5 (or less) will cause only the year to be written.

s Return buffer to hold a string representing a clock time in a standard format (refer to JSOC TN 07-001, http://jsoc.stanford.edu/doc/timerep.html).
t DRMS representation of a time (seconds since an epoch, see TIME).
zone Time system in which s is expressed.
precision Number of digits to the right of the decimal point in the seconds field of s.

Definition at line 922 of file timeio.c.

Generated on Sat Mar 25 07:00:34 2017 for JSOC_Documentation by  doxygen