test
package copy;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Time_Get {
public String time_get() {
Date date = new Date();
//SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy年MM月dd日 HH時mm分ss秒");
sdf2.toString();
// System.out.println(sdf1.format(date));
System.out.println(sdf2.format(date));
String time = new String(sdf2.format(date));
return time;
}
0 件のコメント:
コメントを投稿