Hi Andrew On Thu, Dec 5, 2013 at 1:42 PM, Andrew Harrison < [email protected]> wrote:
> Well, I found setTimeout(), setInterval(), clearTimeout(), and > clearInterval() which are supported by node.js but I'm trying to access the > computer's internal clock using what? > You can get the current time and date in JS in both the browser and under node.js with: var date = new Date(); > It's just javascript? I'm confused as to what language to use to program a > widget in TW5? Does it matter if I'm using TW5 stand alone edition or if it > is shared via an actual node.js install? > Widgets are a specific type of javascript module within TW5. The same widgets run in the single version and on the server. The easiest way I can see to accomplish a clock would be a widget that used setInterval to update a special tiddler with the current time at intervals. Then, whereever you want a clock you'd just transclude that special tiddler. Best wishes Jeremy > > > > > Sent from my Samsung Epicâ„¢ 4G Touch > > Jeremy Ruston <[email protected]> wrote: > Hi Andrew > > There's no native way to build a clock in TW5, so your best bet is > probably to include the clock via an iframe. There are websites offering > clocks designed to be embedded that you could use. > > In the future, the combination of a couple of planned features should make > it possible to create a clock entirely within TW5. The missing features are > the ability for widgets to refresh themselves at a time interval, and a way > to assign the current time to a variable. > > Best wishes > > Jeremy > > > > On Sun, Dec 1, 2013 at 4:53 PM, Andrew Harrison < > [email protected]> wrote: > >> >> Is there a way to access the computer internal clock? Would that be a >> widget? I wanted to put a clock button with seconds in my top menu like I >> have in TWC. Any suggestions? >> >> >> >> Sent from my Samsung Epicâ„¢ 4G Touch >> >> -- >> You received this message because you are subscribed to the Google Groups >> "TiddlyWiki" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/tiddlywiki. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Jeremy Ruston > mailto:[email protected] > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/tiddlywiki. > For more options, visit https://groups.google.com/groups/opt_out. > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/tiddlywiki. > For more options, visit https://groups.google.com/groups/opt_out. > -- Jeremy Ruston mailto:[email protected] -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.

