collegeman / stringtotime

A Java library for parsing just about any English textual datetime description into a Date object.
http://www.clutch-inc.com
ISC License
17 stars 14 forks source link

Streamline the java StringToTime code #2

Open jtnelson opened 11 years ago

jtnelson commented 11 years ago

Streamlined the code to function more as a static utility class and be compatible with Joda DateTime.

collegeman commented 11 years ago

Thanks for your effort! I haven't used this code in years. I haven't written Java in years!


Aaron Collegeman aaroncollegeman@gmail.com

On Sun, Nov 10, 2013 at 12:04 PM, Jeff Nelson notifications@github.comwrote:

Streamlined the code to function more as a static utility class and be

compatible with Joda DateTime.

You can merge this Pull Request by running

git pull https://github.com/jtnelson/stringtotime master

Or view, comment on, or merge it at:

https://github.com/collegeman/stringtotime/pull/2 Commit Summary

  • Added gradle support
  • Added eclipse project files
  • deprecated old static factories and public constructors in favor of static factories that return joda or long timestamp
  • Turn StringToTime into a static utility class
  • remove unused exception class and cleanup tests

File Changes

  • A .classpathhttps://github.com/collegeman/stringtotime/pull/2/files#diff-0(8)
  • A .projecthttps://github.com/collegeman/stringtotime/pull/2/files#diff-1(18)
  • A .settings/gradle/org.springsource.ide.eclipse.gradle.core.prefshttps://github.com/collegeman/stringtotime/pull/2/files#diff-2(3)
  • A build.gradlehttps://github.com/collegeman/stringtotime/pull/2/files#diff-3(16)
  • A gradle/wrapper/gradle-wrapper.propertieshttps://github.com/collegeman/stringtotime/pull/2/files#diff-4(6)
  • A gradlewhttps://github.com/collegeman/stringtotime/pull/2/files#diff-5(164)
  • A gradlew.bathttps://github.com/collegeman/stringtotime/pull/2/files#diff-6(90)
  • D src/main/java/com/clutch/dates/DateEditor.javahttps://github.com/collegeman/stringtotime/pull/2/files#diff-7(26)
  • M src/main/java/com/clutch/dates/StringToTime.javahttps://github.com/collegeman/stringtotime/pull/2/files#diff-8(1073)
  • D src/main/java/com/clutch/dates/StringToTimeException.javahttps://github.com/collegeman/stringtotime/pull/2/files#diff-9(15)
  • M src/test/java/com/clutch/dates/StringToTimeTest.javahttps://github.com/collegeman/stringtotime/pull/2/files#diff-10(495)

Patch Links: