package com.svse.struts.action;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.opensymphony.xwork2.ActionSupport;
public class TimeAction extends ActionSupport {
private String data;
private Date d;
public Date getD() {
return d;
}
public void setD(Date d) {
this.d = d;
}
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
public String dateOut() throws Exception {
SimpleDateFormat sim = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
data = sim.format(new Date());
d = new Date();
return SUCCESS;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
java获取时间和时间格式化
共19个文件
jar:7个
xml:3个
mex:2个
需积分: 10 7 下载量 107 浏览量
2012-11-15
00:41:05
上传
评论
收藏 3.39MB ZIP 举报
温馨提示
java获取时间和时间格式化,适合参考用来处理开发过程中的Date格式问题
资源推荐
资源详情
资源评论
收起资源包目录
获取时间和时间格式化.zip (19个子文件)
获取时间和时间格式化
time
src
.struts.mex 76B
com
svse
struts
action
TimeAction.java 639B
struts.xml 373B
.classpath 936B
.mymetadata 285B
.myeclipse
.project 1KB
WebRoot
META-INF
MANIFEST.MF 36B
index.jsp 454B
WEB-INF
classes
.struts.mex 76B
com
svse
struts
action
TimeAction.class 1KB
struts.xml 373B
lib
commons-io-1.4.jar 106KB
commons-logging-api-1[1].1.1.jar 51KB
struts2-core-2.0.11.jar 2.22MB
commons-fileupload-1.1.1.jar 31KB
xwork-2[1].0.2.jar 447KB
freemarker-2[1].3.10.jar 793KB
ognl-2[1].6.11.jar 164KB
web.xml 626B
共 19 条
- 1
资源评论
littwo
- 粉丝: 10
- 资源: 19
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功