Fwd: Using Date
"Stephan Schmidt" <[email protected]>
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> wrote: > 2007/3/10, Stephan Schmidt <[email protected]>: > > 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 > [email protected] > http://helma.org/mailman/listinfo/helma-user >