Parse time with microseconds in Java

后端 未结 3 371
情深已故
情深已故 2021-01-19 02:40

I am having problems parsing time strings in Java that are in the format of 2013-01-09 09:15:03.000000. In my data, the last three digits are always 0 (meaning

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-19 03:01

    I've figured out myself. Just FYI, Apache commons' FastDateFormat seems accepting the SSS000 format and parses the time correctly.

提交回复
热议问题