Curious that you should bring up just that subject in response to my
own one-and-only post.

I wasn't going to mention this yet, and don't know if there's any
interest out there, but since you brought up the newJournal macro,
here goes...

Some of you are aware that I've been working on combining two of my
interests, TiddlyWiki and Swatch Internet Time (also called Internet
time, sometimes beat time or even .beats "dot beats").

For those of you that haven't run across it before, Internet Time is a
greatly simplified, limited-use form of timekeeping in which it's the
same time everywhere (no time zones and no "Daylight Savings" time),
which greatly simplifies coordinating people spread out over long
distances geographically (hence "Internet"), and in which the day is
divided into 1,000 equal parts, called "beats", which makes elapsed
time and intervals trivial to deal with compared to the old system
(24x60x60). It's usually displayed with an "@" symbol, as "@921" or
"@921.46", to keep it from being confused with any other time value.

I have long been a proponent of the system (against some resistance)
for appropriate uses (it's not intended to replace local time), and
had even written a defense of it, which I resurrected when I re-
started my site not long ago. It's up there now.

A week or so ago, after having created/altered a macro to display the
journals the way I wanted them, I wondered if I could also write
something to let me (just me) use Internet Time to time-stamp my
TiddlyWiki journals.

Turns out that date objects in Javascript are pretty sweet. Somewhat
to my surprise this proved to be very do-able as a replacement for the
"newJournal" macro (as called from the shadow tiddler SideBarOptions).
In fact, I was not only able to allow the use of "beats" in the title
(to three levels of precision), but it was possible to create a syntax
extension that allows that, plus the date and/or time in Biel,
Switzerland in any of the current possible formats (the date in Biel
is the one that should be used if a date is displayed in conjunction
with Internet Time), AND still preserve all of the current syntax for
displaying local time and date- nothing is lost. So, as of a couple of
days a go, my journal timestamps look like this:

Internet: 2009.05.20 @091.65  (local, 9:11 PM, May 19th, 2009)

A couple of bugs have come up and been fixed, a lot of typos, mistakes
and awkward phrasing in the docs/comments, and there are more user
options needed (the parameters are being used), but it's pretty much
worked fine. That was a few days ago..

A couple of days ago it occurred to me that it might be preferable to
have the core date-handling routine as a stand-alone pure Javascript
function (declared as a window variable), so that it could be called
by any other program in TiddlyWiki... or maybe even ported elsewhere.
I rewrote it that way, did a quick and ugly hack job on Mr. Shulman's
DigitalClock (with apologies) as a proof-of-concept, and that's now
running in my title bar, displaying rolling Internet Time (to
centibeats).

So, if there is any interest out there, Internet Time is now available
in TiddlyWiki for journal timestamps, real-time clocks, or any other
program. Should be very straightforward for other programmers to call
in their code.

http://rtimwest.com (my site)
http://rtimwest.com/SwatchInternetTime (info, and link to the code)
http://rtimwest.com/newJournalPlusSIT  (straight to the code)

It's obviously very new, but it should be very safe- it's a very
minimal intercept of built-in functionality, just Javascript and TW
functions, and trivial to remove completely. If anyone cares to try it
at this very early stage, have fun and let me know, especially if you
find a problem (I already have a list of needed features... did I
mention that the parameters are already being used?).

If anyone decides to critique the code, please keep in mind that less
than three weeks ago I had never touched a line of Javascript.

So... in answer to the reply, it just so happens that I've gotten
pretty familiar with how the newJournal macro works since my first
post here. ;-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to