'合并分支'
This commit is contained in:
22
src/net/tccn/bbs/base/kit/EJ.java
Normal file
22
src/net/tccn/bbs/base/kit/EJ.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package com.lxyer.bbs.base.kit;
|
||||
|
||||
import org.redkale.net.http.RestService;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
/**
|
||||
* enjoy模板引擎使用共享方法类,
|
||||
* 更多关于enjoy的共享方法请查阅jfinal使用文档
|
||||
* Created by Lxy at 2017/11/26 17:19.
|
||||
*/
|
||||
@RestService
|
||||
public class EJ {
|
||||
|
||||
public String date(long time){
|
||||
return date(time, "yyyy-MM-dd HH:mm:ss");
|
||||
}
|
||||
public String date(long time, String pattern){
|
||||
return new SimpleDateFormat(pattern).format(time);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user