📜  java代码示例中日期中的T是什么

📅  最后修改于: 2022-03-11 14:52:03.406000             🧑  作者: Mango

代码示例1
The T is just a literal to separate the date from the time, and the Z means "zero hour offset" also known as "Zulu time" (UTC). If your strings always have a "Z" you can use: SimpleDateFormat format = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ss. SSS'Z'", Locale.US); format. setTimeZone(TimeZone.07-Dec-2011