public class NowDataLoader extends Object implements DataLoader
pp.sessionStart or
pp.now instead of this data loader.
The format of the directive is:
now(options), where options is a hash as:
{pattern:"yyyy-MM-dd HH:mm:ss"} or
{date:short, time:long, zone:"GMT+0"}.
| Constructor and Description |
|---|
NowDataLoader() |
public Object load(Engine engine, List args) throws Exception
load in interface DataLoaderargs - Arguments that the caller specifies for this directive call.
Not null.
The implementation should check if it understands all arguments,
and it should throw java.lang.IllegalArgumentException
if it doesn't.freemarker.template.TemplateModel, then it
will not be wrapped, as it is already an FTL variable.Exception