Next / Previous / Contents / Shipman's homepage

6.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 4.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.