I would vote for direct support of Java Instant

Dr. Louis Smith, ThD
Chief Technology Officer, Kyra Solutions, Inc.

On Sat, Oct 29, 2016 at 7:18 AM, Aleksandr Mashchenko <
amashche...@apache.org> wrote:

> Hello,
>
> Currently <s:date> supports java.util.Date and java.util.Calendar. How
> about adding support for long?
>
> It will allow to display timestamps of long type w/o converting them and
> to do some arithmetics on date on JSP w/o creating intermediate date object.
>
> E.g.
>
> <s:date name="timestamp_of_type_long" format="HH:mm"/>
>
> and
>
> <s:set var="d" value="date.time + (3 * 60 * 1000)"/>
> <s:date name="#d" format="HH:mm"/>
>
> Implemented this locally and it seems working fine.
>
> Can you think of any unintentional side effects of adding long to <s:date>?
>
> ---
> Regards,
> Aleksandr
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
> For additional commands, e-mail: dev-h...@struts.apache.org
>
>

Reply via email to