0
Size: a a a
KF
auto dt = DateTime.fromISOExtString("2016-12-31T23:59:60");
//core.time.TimeException@std/datetime/date.d(8327): 60 is not a valid second of a minute.
def instant = new DateTimeFormatterBuilder().appendInstant().toFormatter().parse("2016-12-31T23:59:60Z", Instant::from)
//2016-12-31T23:59:59Z
EP
МВ
>>> datetime.datetime.fromisoformat("2016-12-31T23:59:60")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: second must be in 0..59
KF