获取系统时间

来源:互联网 发布:mysmartcamera监控软件 编辑:程序博客网 时间:2024/06/03 22:59
import java.text.SimpleDateFormat;import java.util.*;public class Test{public static void main(String [] args){Date day=new Date();SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");System.out.println(df.format(day));}}//获取系统时间

1 0
原创粉丝点击