Java时间格式大全

列出所有的时间格式:

String time1 = "Mon Oct 21 16:45:03 CST 2019";
String pattern1 = "EEE MMM d HH:mm:ss zzz yyyy";


String time2 = "2018-06-01 10:12:05";
String pattern2 = "yyyy-MM-dd HH:mm:ss";


String time3 = "Thu, 15 Sep 2011 12:13:41 GMT";
String pattern3 = "EEE, d MMM yyyy HH:mm:ss zzz";



String time4 = "2019-10-22T10:29:26.540210169+08:00";
String pattern4 = "yyyy-MM-dd'T'HH:mm:ss";

  

你可能感兴趣的:(Java时间格式大全)