0
我想當前時間轉換這樣的格式:Android的日期格式時間戳輸出爲 「/日期(1393346946000 + 0200)/
」/日期(1393346946000 + 0200)/
我如何能做到這一點?
public static Date getCurrentTime() {
Calendar c = Calendar.getInstance();
System.out.println("Current time => " + c.getTimeInMillis());
long time = (System.currentTimeMillis());
System.out.println("Current time2 => " + time);
Date currentTime = c.getTime();
return
currentTime;
}