convert functions accept seconds and kelvin units, style fixes