stringtotime icon indicating copy to clipboard operation
stringtotime copied to clipboard

Streamline the java StringToTime code

Open jtnelson opened this issue 12 years ago • 1 comments

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

jtnelson avatar Nov 10 '13 17:11 jtnelson

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


Aaron Collegeman [email protected]

On Sun, Nov 10, 2013 at 12:04 PM, Jeff Nelson [email protected]:

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:

  • https://github.com/collegeman/stringtotime/pull/2.patch
  • https://github.com/collegeman/stringtotime/pull/2.diff

collegeman avatar Nov 14 '13 16:11 collegeman