Date and time on screen

I have seen that in some devices,mainly iPhones, even when the smartphone is inactive,you can see the Date and the TIme over the black screen. Is it posible to do this in Samsung devices?
Maybe through an extension or some programming, i don't know.
Any idea will be welcome.

Sincerely,
Rafael

That's called AOD - Always On Display

I do not know, if you can enable it programmatically

Taifun