Let me mention that the air heated to 1 million degrees isn't a gas. It's probably plasma.
Just order-of-magnitude estimates. It takes seconds for your exterior skin temperature to drop or increase by 1 deg C if the body-air temperature difference is 10 deg C or so. If it were 1 million deg C, i.e. 100,000 times higher, the heating of the skin would be roughly 100,000 times faster but it seems likely to me that even microseconds would still be fine: that may be the time scale at which you would start to feel burns.
However, one would have to analyze the actual behavior of the "hot air", as you call it, namely the plasma. At a million of degrees, it is ionized and emits thermal X-rays. This is a very harmful, ionizing radiation. The plasma itself is ionized, too. These conditions probably lead to the creation of cancer more quickly than you get burned by the heat. So a more relevant calculation than heat answer would probably deal with the number of X-ray photons that you can "sort of non-lethally" absorb from the "air".
The thermal radiation is unavoidable and dominant. The first paragraph only discussed heat conduction. But the thermal radiation goes like $\sigma T^4$ so if the temperature is 160 times greater than the Sun's surface temperature, the radiation carries $(160)^4\sim 10^9$ times larger energy flux than if you're sitting next to the Sun's surface. And the energy fluxes near the Sun's surface are about $10^{5}$ times greater than on a sunny beach, so the thermal radiation is about $10^{14}$ times more intense than the solar radiation. So even if you only view this radiation as a non-carcinogenic heat, the safe time may be reduced to something like $10^{-14}$ seconds. When you realize that the energy counting heavily understates the harmful influence of the X-rays, you will get to a shorter timescale of safety, perhaps $10^{-20}$ seconds.
At any rate, I am confident that you will never get to something like $10^{-247}$ seconds. From a practical viewpoint, nothing happens at these extremely short time scales, they're really unphysical. You would probably not absorb a single thermal X-ray photon during such a ludicrously short timescale so such short exposures may be called "totally safe". They're also totally impossible, of course. You can never design a switch that would only "turn something on" for $10^{-247}$ seconds.
:P
– dearN Mar 27 '13 at 17:38