Temperatures of nearly 40 Celsius were marked in some parts of greater Tokyo, home to 37 million people, on the sixth day of a heatwave that began after the earliest end to the capital's rainy season in decades.