This C program calculates Swatch Internet Time, a revolutionary concept introduced by Swatch that changed how people measure time. ;)
Internet Time divides the day into 1000 'beats', abolishing time zones and providing a universal time for everyone.
- Calculates the current beat (@) based on Internet Time
- Portable and lightweight
- Easily integrates with your status bar, tmux, and more
To compile the program, you need to have a C compiler (like GCC or Clang) installed on your system.
You can compile the program using the provided Makefile
. Simply run:
make
Alternatively, you can compile it manually:
gcc -o internet_time main.c
Once compiled, you can run the program to get the current Internet Time:
./internet_time
You can display the current Internet Time on your tmux status bar by adding this line to your .tmux.conf
:
set-option -ag status-right ' #[fg=white,bg=default]#(internet_time)'
Make sure internet_time
is in your system's PATH.
Contributions are welcome! Follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Open a Pull Request.
This project is licensed under the BSD 3-Clause License. See the LICENSE file for details.