Creating a time only field in a custom module

Hello sugar developers,

I am trying to create a time field which behaves like the time dropdown in the datetime combo.

After doing some research, I have changed the type of the field to time in vardefs which has updated the database column type as well.

What is the best way to achieve only the time field in the UI?

Any help would be appreciated.

Thanks