def GetTZCapabilities():
 tzi = TimeZoneInfo('Mountain Standard Time')
 MissingTZPatch = (datetime.datetime(2007, 11, 2, tzinfo=tzi).utctimetuple() != (2007, 11, 2, 6, 0, 0, 4, 306, 0))
 DynamicTZSupport = ((not MissingTZPatch) and (datetime.datetime(2003, 11, 2, tzinfo=tzi).utctimetuple() == (2003, 11, 2, 7, 0, 0, 6, 306, 0)))
 del tzi
 return vars()

def GetTZCapabilities ( ) : tzi = TimeZoneInfo ( 'Mountain Standard Time' ) MissingTZPatch = ( datetime . datetime ( 2007 , 11 , 2 , tzinfo = tzi ) . utctimetuple ( ) != ( 2007 , 11 , 2 , 6 , 0 , 0 , 4 , 306 , 0 ) ) DynamicTZSupport = ( ( not MissingTZPatch ) and ( datetime . datetime ( 2003 , 11 , 2 , tzinfo = tzi ) . utctimetuple ( ) == ( 2003 , 11 , 2 , 7 , 0 , 0 , 6 , 306 , 0 ) ) ) del tzi return vars ( )
run a few known tests to determine the capabilities of the time zone database on this machine .