[Seaside] [newbie] How do I get the system date and time?

Esteban A. Maringolo eMaringolo at smalltalking.net
Mon May 24 17:50:55 CEST 2004

Hi Larry,

> I'm building a simple logging system in Seaside 2.5a3.  When the 'new
> entry' page is opened, the current date and time should be automatically
> inserted.  How do I get the current date and time of the server Squeak
> is running on?

> entryTime _ Time new.   returns 12:00 am.

It should be:

entryTime := Time now.

and, if you wish:

entryDate := Date today.

Browsing Time and Date classes may give you other methods that can be useful
for your particular purpose.

> I know there's a simple answer, I just don't seem to find it.

It is, i think.

Best regards.


More information about the Seaside mailing list