Thank you for reaching out to us.
Unfortunately it is not possible to restrict user login to specific time frame on Azure AD.
Azure AD / O365 does not 'understand' Logon Hours , you can leverage Block Sign in option if you want to block the user from accessing Azure AD.
You may post feedback regarding this at the User Voice Portal ( https://feedback.azure.com/d365community ).
https://feedback.azure.com/d365community/idea/ce83c644-bf25-ec11-b6e6-000d3a4f0789
Let me know if you have any questions.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.