[Helma-user] Using Date
Hannes Wallnoefer
hannesw at gmail.com
Sat Mar 10 20:05:42 CET 2007
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
More information about the Helma-user
mailing list