Java OffsetDateTime nowAtZone(String offsetId)

Here you can find the source of nowAtZone(String offsetId)

Description

now At Zone

License

Open Source License

Declaration

public static OffsetDateTime nowAtZone(String offsetId) 

Method Source Code

//package com.java2s;
// The MIT License (MIT)

import java.time.OffsetDateTime;

import java.time.ZoneOffset;

public class Main {
    public static OffsetDateTime nowAtZone(String offsetId) {
        return nowAtZone(ZoneOffset.of(offsetId));
    }/*from  w  w  w .  j a va  2s .c o m*/

    public static OffsetDateTime nowAtZone(ZoneOffset offset) {
        return OffsetDateTime.now().withOffsetSameInstant(offset);
    }
}

Related

  1. getCurrentISODate()
  2. getDateTimeString(OffsetDateTime time)
  3. getNowOdt()
  4. hasZone(TemporalAccessor date)
  5. next(OffsetDateTime date, OffsetTime time)
  6. parseDate(String raw)
  7. stringifyDate(long timestamp)
  8. timeF(OffsetDateTime time, ZoneId zone)
  9. toCalendar(OffsetDateTime offsetDateTime)