source: josm/trunk/src/org/openstreetmap/josm/tools/DateParser.java@ 6984

Last change on this file since 6984 was 6380, checked in by Don-vip, 10 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.
2package org.openstreetmap.josm.tools;
3
4import java.text.ParseException;
5import java.util.Date;
6
7/**
8 * Tries to parse a date as good as it can.
9 *
10 * @author Immanuel.Scholz
11 */
12public 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.