Flowdock
valid_ordinal?(p1, p2, p3 = v3) public

Returns true if the given ordinal date is valid, and false if not.

For example:

Date.valid_ordinal?(2001,34)      #=> true
Date.valid_ordinal?(2001,366)     #=> false

See also jd and ordinal.

Show source
Register or log in to add new notes.