Time has nothing to do with the second law of thermodynamics. Temperature does.
It has everything to do with time and temperature.
Entropy is a measure of "times arrow".