yyyy'-'MM'-'dd'T'HH':'mm':'ss - What is the meaning of 'T' here?

后端 未结 6 960
萌比男神i
萌比男神i 2021-02-02 06:37

What is the meaning of T in this datetime pattern ?

yyyy\'-\'MM\'-\'dd\'T\'HH\':\'mm\':\'ss 2011-06-14T04:12:36

相关标签:
6条回答
  • 2021-02-02 06:40

    It just shows the start of the Time component in a standard ISO 8601 date time string. Wikipedia has a detailed page about this standard format.

    0 讨论(0)
  • 2021-02-02 06:40

    Without some context, that's hard to answer.

    However, according to the SimpleDateFormat JavaDoc 'T' is meaningless i.e. just a string literal.

    This is supported by the fact the T is visible in your output string. Perhaps it means time?

    0 讨论(0)
  • 2021-02-02 06:43

    it means "Time". this has been asked and answered a lot. see http://www.w3.org/TR/NOTE-datetime.html

    0 讨论(0)
  • 2021-02-02 06:46

    In ISO 8601 (UTC) T is used to designate the Time component. See "Combined date and time representations" in http://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations

    Find out about UTC here: http://en.wikipedia.org/wiki/Coordinated_Universal_Time.

    0 讨论(0)
  • 2021-02-02 07:01

    [T] is time designator for ISO 8601 format of <date>T<time>.

    0 讨论(0)
  • 2021-02-02 07:06

    It's from ISO 8601 which specifies a standard timestamp format:

    The character [T] shall be used as time designator to indicate the start of the representation of the time of day component in these expressions.

    0 讨论(0)
提交回复
热议问题