It was midnight when I came home last night. 中when引导的是定从还是状从、

问题描述:

It was midnight when I came home last night. 中when引导的是定从还是状从、
如果是状从的话,when从句能置于it was midnight 前面吗?似乎不能啊。

状从