LocalDate
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
package chapter5;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
public class Example20 {
|
||||
public static void main(String[] args) {
|
||||
Instant now = Instant.now();
|
||||
System.out.println(now);
|
||||
Instant instant = Instant.ofEpochMilli(1000 * 60 * 60 * 24);
|
||||
System.out.println(instant);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user