struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aleksandr Mashchenko <amashche...@apache.org>
Subject long to s:date
Date Sat, 29 Oct 2016 11:18:17 GMT
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
View raw message