0

I wonder if any of you out there working with the Play Framework, has came across a module that is displaying a timestamp for a, let's say as an example, a blogpost , in the form (once again an example) "Yesterday at 11:23" and so on. Although using joda time (builtin in Play Framework), i have actually managed to build something working in this direction.

Still just curious if there exists a module...

Sinc. Kalle

4

1 に答える 1

1

モジュールではなく、 という Date オブジェクトの JavaExtension ですsince()。コアの一部です。

http://www.playframework.org/documentation/1.2.4/javaextensions#date

正確ではありませんが、近いです。この機能を正確に作成するには、単純な JavaExtension が必要です。

于 2012-05-18T05:01:31.563 に答える