?? ctimeandstring.java
字號:
package com.sevenEleven.javaBean;
import java.text.SimpleDateFormat;
import java.util.Date;
public class CTimeAndString {
/**
* @param args
*/
/*** 取得系統時間 ***/
public String getCurrentlyTime(){
SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String time = f.format(new Date());
return time;
}
/*** 取得兩個日期的天數 ***/
public static void main(String[] args) {
// TODO Auto-generated method stub
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -