Einzelnen Beitrag anzeigen

Schokohase
(Gast)

n/a Beiträge
 
#3

AW: ISO8601ToDate ungültiger Zeitstring

  Alt 31. Mai 2018, 12:49
Laut RFC 3339 ist time-farction genauso optional wie time-zone
Code:
Time:

   time-hour        = 2DIGIT ; 00-24
   time-minute      = 2DIGIT ; 00-59
   time-second      = 2DIGIT ; 00-58, 00-59, 00-60 based on
                              ; leap-second rules
   time-fraction    = ("," / ".") 1*DIGIT
   time-numoffset   = ("+" / "-") time-hour [[":"] time-minute]
   time-zone        = "Z" / time-numoffset

   timeopt-hour     = "-" / (time-hour [":"])
   timeopt-minute   = "-" / (time-minute [":"])

   timespec-hour    = time-hour [[":"] time-minute [[":"] time-second]]
   timespec-minute  = timeopt-hour time-minute [[":"] time-second]
   timespec-second  = "-" timeopt-minute time-second
   timespec-base    = timespec-hour / timespec-minute / timespec-second

   time             = timespec-base [time-fraction] [time-zone]
Damit sind alle gezeigten Werte gültig im Sinne der RFC.

ISO8601ToDate dann wohl eher nicht.
  Mit Zitat antworten Zitat