Assign leave by hours for employes

Hello to all ERPNext and Frappe people out there,

Is there a way to assign leave in hours for employees…? I mean Currently, I can only assign leave in full or half days.

Thank you in advance.

This would be extremely helpful. I wonder if some countries only allow full and half days as leave? Some countries by law require leave is paid exact, not per half day.