Added time stamp to make each run unique (sign of life)
This commit is contained in:
4
pom.xml
4
pom.xml
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>com.coveros.demo</groupId>
|
||||
<artifactId>helloworld</artifactId>
|
||||
<version>1.0</version>
|
||||
<version>1.1</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Hello World</name>
|
||||
@@ -19,7 +19,7 @@
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<jdk.version>1.8</jdk.version>
|
||||
|
||||
<maven.compiler.plugin.version>3.6.1</maven.compiler.plugin.version>
|
||||
<maven.compiler.plugin.version>3.8.1</maven.compiler.plugin.version>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
package com.coveros.demo.helloworld;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
|
||||
public class HelloWorld {
|
||||
|
||||
public static void main(final String[] args) {
|
||||
System.out.println("Hello, World!");
|
||||
final DateTimeFormatter dtf = DateTimeFormatter.ofPattern("h:mm:ss a 'on' MMMM d, yyyy'.'");
|
||||
final LocalDateTime now = LocalDateTime.now();
|
||||
|
||||
System.out.println("Hello, World! The current time is " + dtf.format(now));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user