import java.time.OffsetDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;

class Main {
    public static void main(String args[]) {

        System.out.println(OffsetDateTime
                .parse("2014-01-01T00:00:00.588Z")
                .getOffset()
                .getTotalSeconds());

        // Changing the date-time to different time zones
        ZonedDateTime zdt = ZonedDateTime.parse("2014-01-01T00:00:00.588Z");
        System.out.println(zdt.withZoneSameInstant(ZoneId.of("America/New_York")));
        System.out.println(zdt.withZoneSameInstant(ZoneId.of("Asia/Kolkata")));
    }
}