Posts

Showing posts with the label Period

Java 8 - Date API

Hi, I am Malathi Boggavarapu working at Volvo Group and i live in Gothenburg, Sweden. I have been working on Java since several years and had vast experience and knowledge across various technologies. This course teach you about Date API in Java8. Date API in java8 java.time - completly replaces java.util and Calendar classes and still keeps inter-operability with legacy API Instant - It is a class and is a point on the timeline Timeline - Assume it is line of time with dates on it and it has given precision and precision is the nanosecond. Conventions of instant class Instant 0 is the January the 1st, 1970 at midnight GMT Instant.MIN is 1 billion years ago Instant.MAX is Dec 31 of the year 1,000,000,000 Instant.now() is the current instant The timeline begins from 1 billion years ago and end with 1 billion years from now. Precision of the time would be in the nanosecond Instant object is immutable Instant start = Instant.now(); ....... Insta