mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 00:08:49 +00:00
fixed parsing connections for Switzerland, ambiguous still missing
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@293 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
8a6b2a9ae3
commit
0a773096f0
8 changed files with 179 additions and 414 deletions
|
@ -267,9 +267,11 @@ public final class ParserUtils
|
|||
return cTime.getTime();
|
||||
}
|
||||
|
||||
public static long timeDiff(Date d1, Date d2)
|
||||
public static long timeDiff(final Date d1, final Date d2)
|
||||
{
|
||||
return d1.getTime() - d2.getTime();
|
||||
final long t1 = d1.getTime();
|
||||
final long t2 = d2.getTime();
|
||||
return t1 - t2;
|
||||
}
|
||||
|
||||
public static Date addDays(final Date time, final int days)
|
||||
|
@ -329,10 +331,5 @@ public final class ParserUtils
|
|||
return selected;
|
||||
}
|
||||
|
||||
public static String extractId(final String link)
|
||||
{
|
||||
return link.substring(link.length() - 10);
|
||||
}
|
||||
|
||||
public static final String P_PLATFORM = "[\\wÄÖÜäöüßáàâéèêíìîóòôúùû\\. -/&#;]+?";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue