https://www.curseforge.com/minecraft/mc-mods/gui-clock-fabric
This is mostly a Fabric port of GUI Clock
GUI Clock is a minimalistic client-side mod which shows the time in the GUI on the screen when a clock is in the inventory (optional). It can show in-game time and/or real time, and can be in the 24 hour format or with AM/PM. It can also show the world's age in days below the time.
This mod is available under the CC0 license.