src/com/mwq/stat/tool/Today.java
(完整代码) 666B/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.mwq.stat.tool;
import java.util.Calendar;
/**
*
* @author Administrator
*/
public class Today {
private static final int YEAR;
private static final int MONTH;
private static final int DAY;
static {
Calendar today = Calendar.getInstance();
YEAR = today.get(Calendar.YEAR);
MONTH = today.get(Calendar.MONTH) + 1;
DAY = today.get(Calendar.DAY_OF_MONTH);
}
public static String getDate() {
return YEAR + " 年 " + MONTH + " 月 " + DAY + " 日";
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
