<% Global.now %>
renders the current datetime

  • Parameter Object:
    containing a formatting string as format property
Sourcecode in /home/hannes/helma/modules/core/Global.js:
46:   function now_macro(param) {
47:       var d = new Date();
48:       if (param.format) {
49:           res.write(d.format(param.format));
50:       } else if (param.as == "timestamp") {
51:           res.write(d.getTime());
52:       } else {
53:           res.write(d);
54:       }
55:      return;
56:  }