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

Last change on this file since 6362 was 6362, checked in by Don-vip, 10 years ago

Checkstyle:

  • private constructors for util classes
  • final classes
  • missing "else" statements
  • import cleanup
  • Property svn:eol-style set to native
File size: 489 bytes
Line 
1// License: GPL. Copyright 2007 by Immanuel Scholz and others
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.