struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Louis Smith <dr.louis.sm...@gmail.com>
Subject Re: long to s:date
Date Sat, 29 Oct 2016 12:25:50 GMT
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 <
amashchenko@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-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message