This datapack links the time in your Minecraft world to your real-time (if on multiplayer, the time in the server's timezone), down to the nearest minute. It is relatively optimised, using the latest features in 1.19.4 to allow parsing strings.
As opposed to other similar datapacks, this one minimises how often it does weird technical things, making it quite optimised, but there’s room for me to improve on it. You won't notice the time going by, as it updates super smoothly :D
It also adds a new item - the Digital Clock, which shows the current time in HH:MM.
The Digital Clock shows your current time/the time of the server. It is accurate (to the time of the server) to within two seconds. You can craft it with the recipe shown, or use the function /function give:clock
!img
The digital clock requires the resource pack to use it, but it is not required for real-time linking or any other features.
If your server that the datapack is installed on is hosted in a timezone which is, say, 4 hours behind your time zone, then you can offset the time. To do this, run /scoreboard players set .TZ_OFFSET rtime offset, where offset is a number from -11 to 14. If the server is 4 hours behind, you would want to offset the time to be 4 hours ahead of the server, so you would set it to 4.
Thanks!
Want a Minecraft server, with a 25% discount? Click Here!

Links your Minecraft time to your IRL time!