#BAEL-16646 move https://www.baeldung.com/java-date-difference in new module java-dates-computations

This commit is contained in:
Alessio Stalla
2019-09-29 11:13:08 +02:00
parent f59fa07851
commit 491a912090
7 changed files with 68 additions and 8 deletions

View File

@@ -0,0 +1,6 @@
## Java Date/time computations Cookbooks and Examples
This module contains articles about date and time computations in Java.
### Relevant Articles:
- [Difference Between Two Dates in Java](http://www.baeldung.com/java-date-difference)

View File

@@ -0,0 +1,60 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>java-dates-computations</artifactId>
<version>${project.parent.version}</version>
<name>java-dates-computations</name>
<packaging>jar</packaging>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>parent-java</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../../../parent-java</relativePath>
</parent>
<dependencies>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>${joda-time.version}</version>
</dependency>
<dependency>
<groupId>com.darwinsys</groupId>
<artifactId>hirondelle-date4j</artifactId>
<version>RELEASE</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>java-dates-computations</finalName>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<joda-time.version>2.10</joda-time.version>
<!-- testing -->
<assertj.version>3.6.1</assertj.version>
<maven.compiler.source>1.9</maven.compiler.source>
<maven.compiler.target>1.9</maven.compiler.target>
</properties>
</project>

View File

@@ -16,6 +16,7 @@
</parent> </parent>
<modules> <modules>
<module>java-dates-computations</module>
<module>java-dates-conversion</module> <module>java-dates-conversion</module>
<module>java-dates-string</module> <module>java-dates-string</module>
</modules> </modules>

View File

@@ -6,7 +6,6 @@
- [TemporalAdjuster in Java](http://www.baeldung.com/java-temporal-adjuster) - [TemporalAdjuster in Java](http://www.baeldung.com/java-temporal-adjuster)
- [Handling Daylight Savings Time in Java](http://www.baeldung.com/java-daylight-savings) - [Handling Daylight Savings Time in Java](http://www.baeldung.com/java-daylight-savings)
- [Period and Duration in Java](http://www.baeldung.com/java-period-duration) - [Period and Duration in Java](http://www.baeldung.com/java-period-duration)
- [Difference Between Two Dates in Java](http://www.baeldung.com/java-date-difference)
- [Migrating to the New Java 8 Date Time API](http://www.baeldung.com/migrating-to-java-8-date-time-api) - [Migrating to the New Java 8 Date Time API](http://www.baeldung.com/migrating-to-java-8-date-time-api)
- [Introduction to the Java 8 Date/Time API](http://www.baeldung.com/java-8-date-time-intro) - [Introduction to the Java 8 Date/Time API](http://www.baeldung.com/java-8-date-time-intro)
- [Get the Current Date, Time and Timestamp in Java 8](http://www.baeldung.com/current-date-time-and-timestamp-in-java-8) - [Get the Current Date, Time and Timestamp in Java 8](http://www.baeldung.com/current-date-time-and-timestamp-in-java-8)

View File

@@ -37,12 +37,6 @@
<artifactId>joda-time</artifactId> <artifactId>joda-time</artifactId>
<version>${joda-time.version}</version> <version>${joda-time.version}</version>
</dependency> </dependency>
<dependency>
<groupId>com.darwinsys</groupId>
<artifactId>hirondelle-date4j</artifactId>
<version>RELEASE</version>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>

View File

@@ -469,7 +469,7 @@
<module>java-collections-maps</module> <module>java-collections-maps</module>
<module>java-collections-maps-2</module> <module>java-collections-maps-2</module>
<module>java-jdi</module> <module>java-jdi</module>
<!-- <module>core-java/core-java-datetime</module>--> <!-- We haven't upgraded to java 9. Fixing in BAEL-10841 --> <!--<module>core-java-modules/core-java-datetime</module>--> <!-- We haven't upgraded to java 9. Fixing in BAEL-10841 -->
<!--<module>java-dates</module>--> <!--<module>java-dates</module>-->
<!-- <module>java-ee-8-security-api</module> --> <!-- long running --> <!-- <module>java-ee-8-security-api</module> --> <!-- long running -->
<module>java-lite</module> <module>java-lite</module>