Java 教程
Java 實例
以下實例演示了如何使用 Date 類及 SimpleDateFormat 類的 format(date) 方法來輸出當前時間:
以上代碼運行輸出結果為:
現(xiàn)在時間:2015-03-27 21:27:28 下午