Java ZonedDateTime Calculate max(ZonedDateTime a, ZonedDateTime b)

Here you can find the source of max(ZonedDateTime a, ZonedDateTime b)

Description

max

License

Mozilla Public License

Declaration

public static ZonedDateTime max(ZonedDateTime a, ZonedDateTime b) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2017 Stichting Yona Foundation This Source Code Form is subject to the terms of the Mozilla Public License, v.
 * 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
 *******************************************************************************/

import java.time.ZonedDateTime;

public class Main {
    public static ZonedDateTime max(ZonedDateTime a, ZonedDateTime b) {
        return a.compareTo(b) > 0 ? a : b;
    }/*from  www . j av  a2s  . c  om*/
}

Related

  1. getZonedDateTimeForComparison(TimeZone zone)
  2. holidaysInRange(ZonedDateTime startDate, ZonedDateTime endDate, List holidays)
  3. isBetweenTimesInclusive(ZonedDateTime dateTime, ZonedDateTime startDateTime, ZonedDateTime endDateTime)
  4. isoDateTime(ZonedDateTime zonedDateTime)
  5. mapToZonedDateTime(final Date date)
  6. oneDayLater(ZonedDateTime baseDate)
  7. parseZdtToDate(ZonedDateTime zdt)
  8. parseZonedDateTime(String zonedDateTimeString, String variableName)
  9. preProcess(String Val, ZonedDateTime BaseTimeMarker)