The function expects to be given a string containing an English date format and will try to parse that format into a Unix timestamp (the number of seconds since January 1 1970 UTC), relative to the timestamp given in is not supplied.
It helps in separating web page designers (HTML authors) from developers (Java programmers usually).
Designers won't face complicated logic in templates, and can change the appearance of a page without programmers having to change or recompile code.
While Free Marker was originally created for generating HTML pages in MVC web application frameworks, it isn't bound to servlets or HTML or anything web-related.
: a Java library to generate text output (HTML web pages, e-mails, configuration files, source code, etc.) based on templates and changing data.
Templates are written in the Free Marker Template Language (FTL), which is a simple, specialized language (not a full-blown programming language like PHP).
You meant to prepare the data to display in a real programming language, like issue database queries and do business calculations, and then the template displays that already prepared data.In the template you are focusing on how to present the data, and outside the template you are focusing on what data to present.It's used in non-web application environments as well. Disclaimer: Apache Free Marker is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator.Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects.While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.Free Marker is Free software, licensed under the Apache License, Version 2.0. As of 2.3.24-pre01 (2015-09-02) the copyright owner in the license has changed to the Apache Software Foundation, as the project has started Apache Incubation (see disclaimer earlier).