v1_9_1_378 - Show latest stable - 0 notes - Class: Date
_valid_time?(h, min, s) public

Do hour h, minute min, and second s constitute a valid time?

If they do, returns their value as a fraction of a day. If not, returns nil.

The 24-hour clock is used. Negative values of h, min, and sec are treating as counting backwards from the end of the next larger unit (e.g. a min of -2 is treated as 58). No wraparound is performed.

Show source
Register or log in to add new notes.