Unable to parse 1960-12-31T23:59:61.4
The AbsoluteDate(String, TimeScale)
constructor cannot parse the given date because the leap second then was greater than 1s. Failing test case below.
Not sure if this is worth fixing since it was so long ago. Reporting it here as a known defect for completeness.
// first leap more than 1 s: 1.422818s
Assert.assertEquals(
new AbsoluteDate(1961, 1, 1, utc).shiftedBy(-0.022818),
new AbsoluteDate("1960-12-31T23:59:61.4", utc));
throws:
org.orekit.errors.OrekitIllegalArgumentException: non-existent time 23:59:61.4
at org.orekit.time.TimeComponents.<init>(TimeComponents.java:114)
at org.orekit.time.TimeComponents.parseTime(TimeComponents.java:364)
at org.orekit.time.DateTimeComponents.parseDateTime(DateTimeComponents.java:173)
at org.orekit.time.AbsoluteDate.<init>(AbsoluteDate.java:290)