Java OffsetDateTime getNowOdt()

Here you can find the source of getNowOdt()

Description

get Now Odt

License

Apache License

Declaration

public static OffsetDateTime getNowOdt() 

Method Source Code

//package com.java2s;
/*/*from   w  ww  .  ja  v a  2  s. c o  m*/
 * Copyright 2017 National Library of Norway.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import java.time.OffsetDateTime;
import java.time.ZoneOffset;

public class Main {
    public static OffsetDateTime getNowOdt() {
        return OffsetDateTime.now(ZoneOffset.UTC);
    }
}

Related

  1. compareChrono(TemporalAccessor date1, TemporalAccessor date2)
  2. compareOffsetDateTimes(OffsetDateTime offsetDateTime1, OffsetDateTime offsetDateTime2)
  3. convertDateToOffsetDateTime(Date date)
  4. getCurrentISODate()
  5. getDateTimeString(OffsetDateTime time)
  6. hasZone(TemporalAccessor date)
  7. next(OffsetDateTime date, OffsetTime time)
  8. nowAtZone(String offsetId)
  9. parseDate(String raw)