Re: Using Date
"Hannes Wallnoefer" <[email protected]>
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
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