class TimeSpan implements Comparable<TimeSpan>, Serializable, TimeSpanProvider, SizeProvider {

    public static TimeSpan fromISO8601String(String input) throws ParseException
    {
        Utilities.checkNull(input, "input");
        String[] split = input.split("/");
        if (split.length != 2)
        {
            throw new ParseException("Failed to find '/' in input string [" + input + "].", 0);
        }
        Date start = DateTimeUtilities.parseISO8601Date(split[0]);
        Date end = DateTimeUtilities.parseISO8601Date(split[1]);
        return TimeSpan.get(start, end);
    }

}