[Helma-user] Fwd: Using Date
Stephan Schmidt
stephan at mud.de
Sat Mar 10 20:32:31 CET 2007
Thanks, where do I best put this line? In a Global onStart() function?
I'm on IRCNet, e.g. irc.fu-berlin.de, #helma
bye
-stephan
On 3/10/07, Hannes Wallnoefer <hannesw at gmail.com> wrote:
> 2007/3/10, Stephan Schmidt <stephan at mud.de>:
> > Hello,
> >
> > I have a timestamp in a database and retrieve it with Helma into a
> > lastCheckin field. This should be Date? Calling format() works, but
> > getTimespan() is not defined, what am I missing?
>
> It's a JavaScript Date object, as described here:
> http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Date
>
> To have it define getTimespan(), you have to load module core/Date:
>
> app.addRepository("modules/core/Date.js");
>
> > Is there an IRC channel like #helma ?
>
> No, but it would be great to have. We're mostly using Jabber, but this
> is quite limited because of its person-to-person schema. Chris
> Zumbrunn once told me he had created a #helma channel on freenode (if
> I remember correctly), but when I looked, I couldn't find it. If
> anybody gets this running, I'll join.
>
> hannes
> _______________________________________________
> Helma-user mailing list
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user
>
More information about the Helma-user
mailing list