You've opened this page May 22 2022 07:39 AM.
PrimeFaces Extensions was first released January 23 2012.
<p> You've opened this page <pe:timeAgo value="#{basicTimeAgoController.created}" titlePattern="MMMM dd yyyy hh:mm a" style="font-weight:bold" />. </p> <p> PrimeFaces Extensions was first released <pe:timeAgo value="#{basicTimeAgoController.firstRelease}" titlePattern="MMMM dd yyyy" style="font-weight:bold"/>. </p>
@Named @ViewScoped public class BasicTimeAgoController implements Serializable { private static final long serialVersionUID = 1L; private final LocalDateTime created = LocalDateTime.now(); private final LocalDateTime firstRelease = LocalDate.of(2012, Month.JANUARY, 23).atStartOfDay(); public LocalDateTime getCreated() { return created; } public LocalDateTime getFirstRelease() { return firstRelease; } }