#NEWLINE# @ classmethod #NEWLINE# def from_periods( cls , start , end ) : #NEWLINE# #INDENT# 'Create an interval with two Periods as the endpoints.\n        ' #NEWLINE# end_date = ( end . open_right_endpoint ( ) if ( end is not None ) else None ) #NEWLINE# start_date = ( start . date if ( start is not None ) else None ) #NEWLINE# return cls ( end_date , end_date )