@classmethod<EOL><INDENT>def from_moy(cls, moy, leap_year=False):<DEDENT>
if not leap_year:<EOL><INDENT>num_of_minutes_until_month = (<NUM_LIT:0>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>,<EOL><NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>,<EOL><NUM_LIT>, <NUM_LIT>)<EOL><DEDENT>else:<EOL><INDENT>num_of_minutes_until_month = (<NUM_LIT:0>, <NUM_LIT>, <NUM_LIT> + <NUM_LIT>, <NUM_LIT> + <NUM_LIT>,<EOL><NUM_LIT> + <NUM_LIT>, <NUM_LIT> + <NUM_LIT>, <NUM_LIT> + <NUM_LIT>,<EOL><NUM_LIT> + <NUM_LIT>, <NUM_LIT> + <NUM_LIT>, <NUM_LIT> + <NUM_LIT>,<EOL><NUM_LIT> + <NUM_LIT>, <NUM_LIT> + <NUM_LIT>, <NUM_LIT> + <NUM_LIT>)<EOL><DEDENT>for monthCount in range(<NUM_LIT:12>):<EOL><INDENT>if int(moy) < num_of_minutes_until_month[monthCount + <NUM_LIT:1>]:<EOL><INDENT>month = monthCount + <NUM_LIT:1><EOL>break<EOL><DEDENT><DEDENT>try:<EOL><INDENT>day = int((moy - num_of_minutes_until_month[month - <NUM_LIT:1>]) / (<NUM_LIT> * <NUM_LIT>)) + <NUM_LIT:1><EOL><DEDENT>except UnboundLocalError:<EOL><INDENT>raise ValueError(<EOL>"<STR_LIT>" % (moy)<EOL>)<EOL><DEDENT>else:<EOL><INDENT>hour = int((moy / <NUM_LIT>) % <NUM_LIT>)<EOL>minute = int(moy % <NUM_LIT>)<EOL>return cls(month, day, hour, minute, leap_year)<EOL><DEDENT>
Create Ladybug Datetime from a minute of the year.

        Args:
            moy: An integer value 0 <= and < 525600