Is there a way to create a margin order that is not Good-until-cancelled but Good-until-<specified_time>

I don’t see option to create a margin order that is “good until end of the day/Week/a specified time in the future”.
I can’t see it both on the desktop GUI for spot and margin trade nether I can find a suitable API call that I can use to achieve it.

Is it really not supported?