Changeset 9746 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2016-02-06T22:04:49+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/date/DateUtils.java
r9739 r9746 80 80 */ 81 81 public static synchronized long tsFromString(String str) throws UncheckedParseException { 82 // "2007-07-25T09:26:24{Z|{+|-}01 :00}"82 // "2007-07-25T09:26:24{Z|{+|-}01[:00]}" 83 83 if (checkLayout(str, "xxxx-xx-xxTxx:xx:xxZ") || 84 84 checkLayout(str, "xxxx-xx-xxTxx:xx:xx") || 85 85 checkLayout(str, "xxxx:xx:xx xx:xx:xx") || 86 86 checkLayout(str, "xxxx-xx-xx xx:xx:xx UTC") || 87 checkLayout(str, "xxxx-xx-xxTxx:xx:xx+xx") || 88 checkLayout(str, "xxxx-xx-xxTxx:xx:xx-xx") || 87 89 checkLayout(str, "xxxx-xx-xxTxx:xx:xx+xx:00") || 88 90 checkLayout(str, "xxxx-xx-xxTxx:xx:xx-xx:00")) { … … 97 99 c.set(Calendar.MILLISECOND, 0); 98 100 99 if (str.length() == 2 5) {101 if (str.length() == 22 || str.length() == 25) { 100 102 int plusHr = parsePart2(str, 20); 101 103 int mul = str.charAt(19) == '+' ? -3600000 : 3600000;
Note: See TracChangeset
for help on using the changeset viewer.