摘要:
SimpleDateFormat的作用:可以格式化,把时间变成我们喜欢的类型,还可以解析,把字符串表示的时间变成Date对象 public SimpleDateFormat()默认格式 public SimpleDateFormat(String pattern)默认格式 public final 阅读全文
摘要:
时间标准时间:以前是GMT:格林威治时间,现在是以铯的震动频率来计算的原子钟 中国标准时间:中国在东八区,时间标准时间+8小时 创建时间对象:Date date = new Date();代表计算机现在的时间 Date date = new Date(指定毫秒值);代表时间原点+指定毫秒值 修改时间 阅读全文