hoursToHMS

Return to directory of Todd's CASA extensions

Converts decimal hours (or a list of hours) into strings of format HH:MM:SS (or a list of strings). See also hmsToHours.

Usage:

au.hoursToHMS(h, prec=3)
Inputs:
  • h: floating point hours
  • prec: fractional seconds digits to show

Example:

CASA <4>: au.hoursToHMS(14.3)
  Out[4]: '14:18:00.000'

-- ToddHunter - 2014-08-12
Topic revision: r4 - 2015-09-08, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback