Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
swatch_time [2023/12/04 13:14] – [Swatch Internet Time / .beat Time] melon | swatch_time [2025/06/17 20:58] (current) – old revision restored (2025/06/17 20:57) GlitchyZorua | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Swatch Internet Time / .beat Time ====== | ====== Swatch Internet Time / .beat Time ====== | ||
+ | <fs xx-large># | ||
- | @000 | + | ===== Introduction ===== |
Swatch time is a universal standard time for the entire internet! It lets you plan events or meetups with your friends from anywhere in the world and not have to worry about timezones or other annoyances! Its also hella hacker and very cool to use :^) | Swatch time is a universal standard time for the entire internet! It lets you plan events or meetups with your friends from anywhere in the world and not have to worry about timezones or other annoyances! Its also hella hacker and very cool to use :^) | ||
- | It was originally invented by the Swatch Company in 1998 although it did not gain much widespread popularity - however it's used on MelonLand and many other web revival sites as a standard means of organisation and planning! | + | It was originally invented by the Swatch Company in 1998 (Sorta since they copied it from a time format used in the French Revolution) |
===== How does it work? ===== | ===== How does it work? ===== | ||
- | It divides the day into 1000 “**beats**”. Instead of using hours, minutes, and seconds to represent time, Swatch Internet Time uses a single decimal number ranging from 000 to 999. Each beat is equivalent to 1 minute and 26.4 seconds. Sometimes you'll also see some extra numbers like " | + | It divides the day into 1000 “**beats**”. Instead of using hours, minutes, and seconds to represent time, Swatch Internet Time uses a single decimal number ranging from 000 to 999. Each beat is equivalent to 1 minute and 26.4 seconds. Sometimes you'll also see some extra numbers like " |
- | Swatch time is usually preceded by an **@** symbol; this helps you know its swatch time and not some random number! For example **@123** or **@542.69** | + | Swatch time is usually preceded by an **@** symbol; this helps you know it' |
000 in Swatch time is the same as Midnight UTC+1; but because swatch time does not use timezones, midnight will be different for everyone. The goal of swatch time is not to provide the relative time you can use in your daily life; it's for worldwide events that all need to happen at the same time! | 000 in Swatch time is the same as Midnight UTC+1; but because swatch time does not use timezones, midnight will be different for everyone. The goal of swatch time is not to provide the relative time you can use in your daily life; it's for worldwide events that all need to happen at the same time! | ||
Line 21: | Line 21: | ||
**Swatch Time Apps for various platforms: | **Swatch Time Apps for various platforms: | ||
* All Apple devices, including Apple Watch - [[https:// | * All Apple devices, including Apple Watch - [[https:// | ||
- | * Android - [[https:// | + | * Android |
* Pebble Smart Watches - [[https:// | * Pebble Smart Watches - [[https:// | ||
* macOS Menubar - [[https:// | * macOS Menubar - [[https:// | ||
* GNOME Extension - [[https:// | * GNOME Extension - [[https:// | ||
+ | * Cinnamon Applet - [[https:// | ||
+ | * Win 95/XP - [[https:// | ||
+ | * Winamp & WaCUP - [[https:// | ||
+ | * iPad - [[https:// | ||
+ | * Color - [[rgbeat|RGBeat]], | ||
===== Other useful links! ===== | ===== Other useful links! ===== | ||
Line 31: | Line 36: | ||
* The Swatch [[https:// | * The Swatch [[https:// | ||
* Swatch Time History on [[https:// | * Swatch Time History on [[https:// | ||
- | * Metric | + | * Decimal |
---- | ---- | ||
Line 80: | Line 85: | ||
mySwatchClock.innerHTML = ' | mySwatchClock.innerHTML = ' | ||
} | } | ||
- | setInterval(updateSwatchClock(), 864); | + | setInterval(updateSwatchClock, |
</ | </ | ||
</ | </ | ||
Line 111: | Line 116: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | ==== BASH: ==== | ||
+ | (note that Etc timezones are inverted) | ||
+ | Calculating Beat Time in bash is simple: | ||
+ | < | ||
+ | MIDNIGHT=$( TZ=' | ||
+ | BTIME=$(( (($EPOCHSECONDS - $midnight) * 1000) / 86400 )) | ||
+ | echo @$BTIME | ||
+ | </ | ||
+ | However, you need to use an external program to calculate centibeats, since bash does not handle decimals well: | ||
+ | |||
+ | (using dc, which is a rpn calculator) | ||
+ | < | ||
+ | MIDNIGHT=$( TZ=' | ||
+ | |||
+ | printf @ | ||
+ | dc << EOF | ||
+ | # setting precision | ||
+ | 2 k | ||
+ | # subtracting midnight from the current epoch | ||
+ | $EPOCHREALTIME $MIDNIGHT - | ||
+ | # converting to ms | ||
+ | 1000 * | ||
+ | # divide by seconds in a day | ||
+ | 86400 / | ||
+ | # print it to screen | ||
+ | p | ||
+ | EOF | ||
+ | </ | ||
+ | To display it on your screen permanently, | ||
+ | < | ||
+ | while true | ||
+ | do | ||
+ | MIDNIGHT=$( TZ=' | ||
+ | BTIME=$(( (($EPOCHSECONDS - $midnight) * 1000) / 86400 )) | ||
+ | echo @$BTIME | ||
+ | done | lemonbar -bg 48+0+18 | ||
+ | </ | ||
+ | (you can replace the code between the do and done with the dc version too) | ||
+ |