开发者

Convert a java.text.DateFormat instance to a strftime string?

开发者 https://www.devze.com 2023-04-07 12:43 出处:网络
I\'ve got a DateFormat object that I would like to turn into a strftime s开发者_JAVA技巧tring so I can get consistent date formatting across multiple languages. Is there something in the SDK that I\'m

I've got a DateFormat object that I would like to turn into a strftime s开发者_JAVA技巧tring so I can get consistent date formatting across multiple languages. Is there something in the SDK that I'm missing? If not, is this a feature of some 3rd-party lib that I can grab? Thanks.


There is a strftime translator class in the Apache Tomcat project:

org.apache.catalina.util.Strftime

Hope that helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消