From 97c02c0abf1d5fd2a2340c2ab137958424e2bbdf Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 2 Aug 2021 15:43:17 -0400 Subject: [PATCH] add wikipedia link --- beat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beat.py b/beat.py index e4611d8..4de515e 100644 --- a/beat.py +++ b/beat.py @@ -8,6 +8,8 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.command.beat") @utils.kwarg("help", "Gives the current .beat time") def beat(self, event): + # https://en.wikipedia.org/wiki/Swatch_Internet_Time + # UTC + 1 / Biel Mean Time now = datetime.now(timezone(timedelta(hours=1))) beat_time = ((now.hour * 3600) + (now.minute * 60) + now.second) / 86.4 event["stdout"].write(f"The current .beat time is @{beat_time:0.2f}")