Last change
on this file since 6642 was 6380, checked in by Don-vip, 11 years ago |
update license/copyright information
|
-
Property svn:eol-style
set to
native
|
File size:
475 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.tools;
|
---|
3 |
|
---|
4 | import java.text.ParseException;
|
---|
5 | import java.util.Date;
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * Tries to parse a date as good as it can.
|
---|
9 | *
|
---|
10 | * @author Immanuel.Scholz
|
---|
11 | */
|
---|
12 | public final class DateParser {
|
---|
13 |
|
---|
14 | private DateParser() {
|
---|
15 | // Hide default constructor for utils classes
|
---|
16 | }
|
---|
17 |
|
---|
18 | public static Date parse(String d) throws ParseException {
|
---|
19 | return new PrimaryDateParser().parse(d);
|
---|
20 | }
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.