Hello Tiddlyfriends.
I have been looking for a way to store some thoughts and notes for wiki style back linking and organization. TiddlyWiki really hits all the right notes for me and as a novice with java/css/html I feel it’s the right technical level for my desire to customize while still providing practical function.
I am new to the community and have searched on this topic to discover if anyone has solved this previously. I did find some older threads from 2009 referencing incorporating a NewEarthTime clock. The discussion got relatively philosophic and I love it, but I’m having trouble trying to extrapolate what was done here to incorporate into my own Tiddlyverse.
https://www.mail-archive.com/tiddlywiki@googlegroups.com/msg06069.html
http://tw-net-trial.tiddlyspot.com/index.html
My objective is to simply adjust my Tiddler Created/Modified subtitle display times from "16th September HH:MM:SS’ to ‘16th September @XXX.beat.’ The example I fished out above is intended to display the running clock, and I think there must be a simpler solution for static time stamp display. Of course the running clock would be fun too, but I can’t seem to get either working.
I attempted to do this myself with some assistance from the internets and reversing how others have added Java to Tiddlywiki.
Tiddlywiki 5.3.5
TiddlyDesktop for Mac
title: $:/plugins/custom/beat-time
type: application/javascript
tiddlerType: text/vnd.tiddlywiki
(function(){
function getBeatTime() {
var now = new Date();
var totalSeconds = (now.getUTCHours() * 3600) + (now.getUTCMinutes() * 60) + now.getUTCSeconds();
var bmtSeconds = totalSeconds + (1 * 3600);
var beats = Math.floor((bmtSeconds % 86400) / 86.4);
return ("000" + beats).slice(-3);
}
exports.name = "beatTime";
exports.params = [];
exports.run = function() {
return '@' + getBeatTime();
};
})();
I updated $:/language/Tiddler/DateFormat which I think controls the subtitle date formatting.
DDth MMM YYYY at hh12:0mmam <<beatTime>>
The result is my subtitles just now show" 14th September 2024 at 9:41pm << beatTime >>" and not the beat time itself. I don’t see any Javascript errors when viewing the console. I am certain there is more to it that I need to set up to use the as the date-stamp time display.
Would I need to create a custom ViewTemplate and perform HH:MM:SS conversions on all timestamps?
The learning curve is a little steep and I really am enjoying the configurability, I think I just need a little guidance on my implementation of javascript for the plugin.
Thank you kindly for your view and assistance in advance!
Edited to incorporate the concept of Internet .beat Time
What is Internet .beat Time?
Swatch Internet Beat Time, introduced by the Swiss watch company Swatch in 1998, is a unique timekeeping system that divides the day into 1,000 equal parts called “beats.” Each beat lasts 1 minute and 26.4 seconds, replacing the traditional hours and minutes format. This system uses Biel Mean Time (BMT) as its reference, which is based on the time in Biel, Switzerland, where Swatch is headquartered.
Unlike conventional time zones, Internet Beat time operates on a single, universal standard, eliminating the need for time conversions. The time is expressed in a format “@500.beats,” which would indicate 500 beats after midnight BMT.
The primary goal of Swatch Internet Beat is to simplify global communication and coordination. By using a unified time standard, people from different parts of the world can easily synchronize their activities without worrying about time zone differences. Though innovative, this system has remained a niche concept and has not achieved widespread adoption beyond specific communities.
I found personal use with beatTime in recording events for a global audience and community. It has been helpful to adjust my perspective on global coordination and communication styles. It is not without its imperfections.