📄 util.java
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package com.redingsoft.timeutil;import java.text.SimpleDateFormat;import java.util.Date;/** * * @author Administrator */public class Util {/**=======================================================================** * [## public static String getNowDTime() {} ]: 返回当前日期时间 * 参数 :无 * 返回值 :String 对象表示当前系统时间 * 修饰符 :public * 功能 :返回当前日期时间 **=======================================================================** */ public static String getNowDTime() { Date time=new Date(); SimpleDateFormat dateformat=new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss"); return dateformat.format(time); } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -