#NEWLINE# @ staticmethod #NEWLINE# def from_datetime_range( range_type , dt1 , dt2 ) : #NEWLINE# #INDENT# return DateChoice ( DateRangeType . get ( range_type . level , False ) , [ DateChoice . datetime_to_value ( range_type , dt1 ) , DateChoice . datetime_to_value ( range_type , range_type ) ] )