Description:
This little addon (script) allows you to synchronize the time between the real world and the Minecraft world. Works on Windows 10 only, experimental mode must be enabled. Enjoy it.
I think it’s better to see something once than to hear about it a thousand times.
Before entering the game world, you will see this window (see screenshot), you must press “Enter world” (depending on your localization).
The current time data is taken from your computer, so if necessary, you can change the time on your computer and the time in your world will also change.
Time is synchronized every 10 seconds to reduce the load on the computer.
Attention! Don’t put past dates on your computer, you might lose the world! This is not an addon bug, this is a minecraft bedrock bug
This might help you ( taken from the minecraft wiki):
Installation
1. Install behavior
2. Add behavior to the world