Next / Previous / Contents / TCC Help System / NM Tech homepage

5.12. parseHours(): Parse a quantity in hours

This function parses a string containing a value in hours with optional minutes and seconds, as described in Section 3.4, “Specifying hours on command lines”.

parseHours ( s )

If string s is valid, the function returns the angle as a float in interval [0,24). It will raise a SyntaxError if s is not valid.