java 将LocalDateTime转换为ZonedDateTime

hgqdbh6s  于 2023-04-19  发布在  Java
关注(0)|答案(1)|浏览(214)

我有这样一段代码,我想编辑它以返回ZonedDateTime类型的对象:

private int timeToLive = 60;
  private int timeToLiveBuffer = 2;

  LocalDateTime expirationDate(Clock clock) {
    long millis = ZonedDateTime.now(clock)
        .plusMinutes(timeToLive)
        .plusMinutes(timeToLiveBuffer)
        .toInstant()
        .toEpochMilli();
    // JDK 8 time zone => Joda time zone => Joda date time
    TimeZone timeZone = TimeZone.getTimeZone(clock.getZone());
    DateTimeZone dateTimeZone = DateTimeZone.forTimeZone(timeZone);
    return new LocalDateTime(millis, dateTimeZone);
  }

  private DateTime newExpirationDate() {
    return expirationDateCalculator.expirationDate(Clock.systemUTC()).toDateTime();
  }

我试着让它更简单,就像这样:

LocalDateTime expirationDate(@NotNull Clock clock) {
    long millis = ZonedDateTime.now(clock)
        .plusMinutes(timeToLive)
        .plusMinutes(timeToLiveBuffer)
        .toInstant()
        .toEpochMilli();
    return ZonedDateTime.of(millis, ZoneId.of("UTC"));
  }

  private ZonedDateTime newExpirationDate() {
    return expirationDateCalculator.expirationDate(Clock.systemUTC()).toDateTime();
  }

但是得到转换的错误。有没有可能用一种更简单的方法来转换它,使用ZonedDateTime?

mm9b1k5b

mm9b1k5b1#

请注意,LocalDateTimeorg.joda.time内部的一个库,ZonedDateTimejava.time内部的一个库。这意味着你需要通过不同的时间库来转换时间。所以它可以实现与ldtToZdt函数相等的毫秒。

import java.time.Clock;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.TimeZone;
import org.joda.time.DateTimeZone;
import org.joda.time.LocalDateTime;

public class JavaApplication12 {

    private static int timeToLive = 60;
    private static int timeToLiveBuffer = 2;

    static LocalDateTime expirationDate(Clock clock) {
        System.out.println(ZonedDateTime.now(clock));
        long millis = ZonedDateTime.now(clock)
                .plusMinutes(timeToLive)
                .plusMinutes(timeToLiveBuffer)
                .toInstant()
                .toEpochMilli();
        // JDK 8 time zone => Joda time zone => Joda date time
        TimeZone timeZone = TimeZone.getTimeZone(clock.getZone());
        DateTimeZone dateTimeZone = DateTimeZone.forTimeZone(timeZone);
        return new LocalDateTime(millis, dateTimeZone);
    }

    static ZonedDateTime ldtToZdt(LocalDateTime ldt, String zone) {
        DateTimeZone jodaTimeZone = DateTimeZone.getDefault();
        org.joda.time.Instant jodaInstant = ldt.toDateTime(jodaTimeZone).toInstant();
        java.time.Instant javaInstant = java.time.Instant.ofEpochMilli(jodaInstant.getMillis());
        ZoneId javaZoneId = ZoneId.of(zone);
        return ZonedDateTime.ofInstant(javaInstant, javaZoneId);
    }

    public static void main(String[] args) {
//        LocalDateTime ldt = expirationDate(Clock.systemUTC());
        LocalDateTime ldt = LocalDateTime.now();
        System.out.println(ldt + "[" + ZoneId.systemDefault() + "]");
        ZonedDateTime zdt;
        List<String> zoneIds = new ArrayList<>(ZoneId.getAvailableZoneIds());
        Collections.sort(zoneIds);
        for (String zoneId : zoneIds) {
            zdt = ldtToZdt(ldt, zoneId);
            System.out.println(zdt.toString());
        }
    }
}

输出将是:

2023-04-17T17:30:59.947[Asia/Bangkok]
2023-04-17T10:30:59.947Z[Africa/Abidjan]
2023-04-17T10:30:59.947Z[Africa/Accra]
2023-04-17T13:30:59.947+03:00[Africa/Addis_Ababa]
2023-04-17T11:30:59.947+01:00[Africa/Algiers]
2023-04-17T13:30:59.947+03:00[Africa/Asmara]
2023-04-17T13:30:59.947+03:00[Africa/Asmera]
2023-04-17T10:30:59.947Z[Africa/Bamako]
2023-04-17T11:30:59.947+01:00[Africa/Bangui]
2023-04-17T10:30:59.947Z[Africa/Banjul]
2023-04-17T10:30:59.947Z[Africa/Bissau]
2023-04-17T12:30:59.947+02:00[Africa/Blantyre]
2023-04-17T11:30:59.947+01:00[Africa/Brazzaville]
2023-04-17T12:30:59.947+02:00[Africa/Bujumbura]
2023-04-17T12:30:59.947+02:00[Africa/Cairo]
2023-04-17T11:30:59.947+01:00[Africa/Casablanca]
2023-04-17T12:30:59.947+02:00[Africa/Ceuta]
2023-04-17T10:30:59.947Z[Africa/Conakry]
2023-04-17T10:30:59.947Z[Africa/Dakar]
2023-04-17T13:30:59.947+03:00[Africa/Dar_es_Salaam]
2023-04-17T13:30:59.947+03:00[Africa/Djibouti]
2023-04-17T11:30:59.947+01:00[Africa/Douala]
2023-04-17T11:30:59.947+01:00[Africa/El_Aaiun]
2023-04-17T10:30:59.947Z[Africa/Freetown]
2023-04-17T12:30:59.947+02:00[Africa/Gaborone]
2023-04-17T12:30:59.947+02:00[Africa/Harare]
2023-04-17T12:30:59.947+02:00[Africa/Johannesburg]
2023-04-17T13:30:59.947+03:00[Africa/Juba]
2023-04-17T13:30:59.947+03:00[Africa/Kampala]
2023-04-17T12:30:59.947+02:00[Africa/Khartoum]
2023-04-17T12:30:59.947+02:00[Africa/Kigali]
2023-04-17T11:30:59.947+01:00[Africa/Kinshasa]
2023-04-17T11:30:59.947+01:00[Africa/Lagos]
2023-04-17T11:30:59.947+01:00[Africa/Libreville]
2023-04-17T10:30:59.947Z[Africa/Lome]
2023-04-17T11:30:59.947+01:00[Africa/Luanda]
2023-04-17T12:30:59.947+02:00[Africa/Lubumbashi]
2023-04-17T12:30:59.947+02:00[Africa/Lusaka]
2023-04-17T11:30:59.947+01:00[Africa/Malabo]
2023-04-17T12:30:59.947+02:00[Africa/Maputo]
2023-04-17T12:30:59.947+02:00[Africa/Maseru]
2023-04-17T12:30:59.947+02:00[Africa/Mbabane]
2023-04-17T13:30:59.947+03:00[Africa/Mogadishu]
2023-04-17T10:30:59.947Z[Africa/Monrovia]
2023-04-17T13:30:59.947+03:00[Africa/Nairobi]
2023-04-17T11:30:59.947+01:00[Africa/Ndjamena]
2023-04-17T11:30:59.947+01:00[Africa/Niamey]
2023-04-17T10:30:59.947Z[Africa/Nouakchott]
2023-04-17T10:30:59.947Z[Africa/Ouagadougou]
2023-04-17T11:30:59.947+01:00[Africa/Porto-Novo]
2023-04-17T11:30:59.947+01:00[Africa/Sao_Tome]
2023-04-17T10:30:59.947Z[Africa/Timbuktu]
2023-04-17T12:30:59.947+02:00[Africa/Tripoli]
2023-04-17T11:30:59.947+01:00[Africa/Tunis]
2023-04-17T12:30:59.947+02:00[Africa/Windhoek]
2023-04-17T01:30:59.947-09:00[America/Adak]
2023-04-17T02:30:59.947-08:00[America/Anchorage]
2023-04-17T06:30:59.947-04:00[America/Anguilla]
2023-04-17T06:30:59.947-04:00[America/Antigua]
2023-04-17T07:30:59.947-03:00[America/Araguaina]
2023-04-17T07:30:59.947-03:00[America/Argentina/Buenos_Aires]
2023-04-17T07:30:59.947-03:00[America/Argentina/Catamarca]
2023-04-17T07:30:59.947-03:00[America/Argentina/ComodRivadavia]
2023-04-17T07:30:59.947-03:00[America/Argentina/Cordoba]
2023-04-17T07:30:59.947-03:00[America/Argentina/Jujuy]
2023-04-17T07:30:59.947-03:00[America/Argentina/La_Rioja]
2023-04-17T07:30:59.947-03:00[America/Argentina/Mendoza]
2023-04-17T07:30:59.947-03:00[America/Argentina/Rio_Gallegos]
2023-04-17T07:30:59.947-03:00[America/Argentina/Salta]
2023-04-17T07:30:59.947-03:00[America/Argentina/San_Juan]
2023-04-17T07:30:59.947-03:00[America/Argentina/San_Luis]
2023-04-17T07:30:59.947-03:00[America/Argentina/Tucuman]
2023-04-17T07:30:59.947-03:00[America/Argentina/Ushuaia]
2023-04-17T06:30:59.947-04:00[America/Aruba]
2023-04-17T06:30:59.947-04:00[America/Asuncion]
2023-04-17T05:30:59.947-05:00[America/Atikokan]
2023-04-17T01:30:59.947-09:00[America/Atka]
2023-04-17T07:30:59.947-03:00[America/Bahia]
2023-04-17T05:30:59.947-05:00[America/Bahia_Banderas]
2023-04-17T06:30:59.947-04:00[America/Barbados]
2023-04-17T07:30:59.947-03:00[America/Belem]
2023-04-17T04:30:59.947-06:00[America/Belize]
2023-04-17T06:30:59.947-04:00[America/Blanc-Sablon]
2023-04-17T06:30:59.947-04:00[America/Boa_Vista]
2023-04-17T05:30:59.947-05:00[America/Bogota]
2023-04-17T04:30:59.947-06:00[America/Boise]
2023-04-17T07:30:59.947-03:00[America/Buenos_Aires]
2023-04-17T04:30:59.947-06:00[America/Cambridge_Bay]
2023-04-17T06:30:59.947-04:00[America/Campo_Grande]
2023-04-17T05:30:59.947-05:00[America/Cancun]
2023-04-17T06:30:59.947-04:00[America/Caracas]
2023-04-17T07:30:59.947-03:00[America/Catamarca]
2023-04-17T07:30:59.947-03:00[America/Cayenne]
2023-04-17T05:30:59.947-05:00[America/Cayman]
2023-04-17T05:30:59.947-05:00[America/Chicago]
2023-04-17T04:30:59.947-06:00[America/Chihuahua]
2023-04-17T05:30:59.947-05:00[America/Coral_Harbour]
2023-04-17T07:30:59.947-03:00[America/Cordoba]
2023-04-17T04:30:59.947-06:00[America/Costa_Rica]
2023-04-17T03:30:59.947-07:00[America/Creston]
2023-04-17T06:30:59.947-04:00[America/Cuiaba]
2023-04-17T06:30:59.947-04:00[America/Curacao]
2023-04-17T10:30:59.947Z[America/Danmarkshavn]
2023-04-17T03:30:59.947-07:00[America/Dawson]
2023-04-17T03:30:59.947-07:00[America/Dawson_Creek]
2023-04-17T04:30:59.947-06:00[America/Denver]
2023-04-17T06:30:59.947-04:00[America/Detroit]
2023-04-17T06:30:59.947-04:00[America/Dominica]
2023-04-17T04:30:59.947-06:00[America/Edmonton]
2023-04-17T05:30:59.947-05:00[America/Eirunepe]
2023-04-17T04:30:59.947-06:00[America/El_Salvador]
2023-04-17T03:30:59.947-07:00[America/Ensenada]
2023-04-17T03:30:59.947-07:00[America/Fort_Nelson]
2023-04-17T06:30:59.947-04:00[America/Fort_Wayne]
2023-04-17T07:30:59.947-03:00[America/Fortaleza]
2023-04-17T07:30:59.947-03:00[America/Glace_Bay]
2023-04-17T08:30:59.947-02:00[America/Godthab]
2023-04-17T07:30:59.947-03:00[America/Goose_Bay]
2023-04-17T06:30:59.947-04:00[America/Grand_Turk]
2023-04-17T06:30:59.947-04:00[America/Grenada]
2023-04-17T06:30:59.947-04:00[America/Guadeloupe]
2023-04-17T04:30:59.947-06:00[America/Guatemala]
2023-04-17T05:30:59.947-05:00[America/Guayaquil]
2023-04-17T06:30:59.947-04:00[America/Guyana]
2023-04-17T07:30:59.947-03:00[America/Halifax]
2023-04-17T06:30:59.947-04:00[America/Havana]
2023-04-17T03:30:59.947-07:00[America/Hermosillo]
2023-04-17T06:30:59.947-04:00[America/Indiana/Indianapolis]
2023-04-17T05:30:59.947-05:00[America/Indiana/Knox]
2023-04-17T06:30:59.947-04:00[America/Indiana/Marengo]
2023-04-17T06:30:59.947-04:00[America/Indiana/Petersburg]
2023-04-17T05:30:59.947-05:00[America/Indiana/Tell_City]
2023-04-17T06:30:59.947-04:00[America/Indiana/Vevay]
2023-04-17T06:30:59.947-04:00[America/Indiana/Vincennes]
2023-04-17T06:30:59.947-04:00[America/Indiana/Winamac]
2023-04-17T06:30:59.947-04:00[America/Indianapolis]
2023-04-17T04:30:59.947-06:00[America/Inuvik]
2023-04-17T06:30:59.947-04:00[America/Iqaluit]
2023-04-17T05:30:59.947-05:00[America/Jamaica]
2023-04-17T07:30:59.947-03:00[America/Jujuy]
2023-04-17T02:30:59.947-08:00[America/Juneau]
2023-04-17T06:30:59.947-04:00[America/Kentucky/Louisville]
2023-04-17T06:30:59.947-04:00[America/Kentucky/Monticello]
2023-04-17T05:30:59.947-05:00[America/Knox_IN]
2023-04-17T06:30:59.947-04:00[America/Kralendijk]
2023-04-17T06:30:59.947-04:00[America/La_Paz]
2023-04-17T05:30:59.947-05:00[America/Lima]
2023-04-17T03:30:59.947-07:00[America/Los_Angeles]
2023-04-17T06:30:59.947-04:00[America/Louisville]
2023-04-17T06:30:59.947-04:00[America/Lower_Princes]
2023-04-17T07:30:59.947-03:00[America/Maceio]
2023-04-17T04:30:59.947-06:00[America/Managua]
2023-04-17T06:30:59.947-04:00[America/Manaus]
2023-04-17T06:30:59.947-04:00[America/Marigot]
2023-04-17T06:30:59.947-04:00[America/Martinique]
2023-04-17T05:30:59.947-05:00[America/Matamoros]
2023-04-17T04:30:59.947-06:00[America/Mazatlan]
2023-04-17T07:30:59.947-03:00[America/Mendoza]
2023-04-17T05:30:59.947-05:00[America/Menominee]
2023-04-17T05:30:59.947-05:00[America/Merida]
2023-04-17T02:30:59.947-08:00[America/Metlakatla]
2023-04-17T05:30:59.947-05:00[America/Mexico_City]
2023-04-17T08:30:59.947-02:00[America/Miquelon]
2023-04-17T07:30:59.947-03:00[America/Moncton]
2023-04-17T05:30:59.947-05:00[America/Monterrey]
2023-04-17T07:30:59.947-03:00[America/Montevideo]
2023-04-17T06:30:59.947-04:00[America/Montreal]
2023-04-17T06:30:59.947-04:00[America/Montserrat]
2023-04-17T06:30:59.947-04:00[America/Nassau]
2023-04-17T06:30:59.947-04:00[America/New_York]
2023-04-17T06:30:59.947-04:00[America/Nipigon]
2023-04-17T02:30:59.947-08:00[America/Nome]
2023-04-17T08:30:59.947-02:00[America/Noronha]
2023-04-17T05:30:59.947-05:00[America/North_Dakota/Beulah]
2023-04-17T05:30:59.947-05:00[America/North_Dakota/Center]
2023-04-17T05:30:59.947-05:00[America/North_Dakota/New_Salem]
2023-04-17T04:30:59.947-06:00[America/Ojinaga]
2023-04-17T05:30:59.947-05:00[America/Panama]
2023-04-17T06:30:59.947-04:00[America/Pangnirtung]
2023-04-17T07:30:59.947-03:00[America/Paramaribo]
2023-04-17T03:30:59.947-07:00[America/Phoenix]
2023-04-17T06:30:59.947-04:00[America/Port-au-Prince]
2023-04-17T06:30:59.947-04:00[America/Port_of_Spain]
2023-04-17T05:30:59.947-05:00[America/Porto_Acre]
2023-04-17T06:30:59.947-04:00[America/Porto_Velho]
2023-04-17T06:30:59.947-04:00[America/Puerto_Rico]
2023-04-17T07:30:59.947-03:00[America/Punta_Arenas]
2023-04-17T05:30:59.947-05:00[America/Rainy_River]
2023-04-17T05:30:59.947-05:00[America/Rankin_Inlet]
2023-04-17T07:30:59.947-03:00[America/Recife]
2023-04-17T04:30:59.947-06:00[America/Regina]
2023-04-17T05:30:59.947-05:00[America/Resolute]
2023-04-17T05:30:59.947-05:00[America/Rio_Branco]
2023-04-17T07:30:59.947-03:00[America/Rosario]
2023-04-17T03:30:59.947-07:00[America/Santa_Isabel]
2023-04-17T07:30:59.947-03:00[America/Santarem]
2023-04-17T06:30:59.947-04:00[America/Santiago]
2023-04-17T06:30:59.947-04:00[America/Santo_Domingo]
2023-04-17T07:30:59.947-03:00[America/Sao_Paulo]
2023-04-17T10:30:59.947Z[America/Scoresbysund]
2023-04-17T04:30:59.947-06:00[America/Shiprock]
2023-04-17T02:30:59.947-08:00[America/Sitka]
2023-04-17T06:30:59.947-04:00[America/St_Barthelemy]
2023-04-17T08:00:59.947-02:30[America/St_Johns]
2023-04-17T06:30:59.947-04:00[America/St_Kitts]
2023-04-17T06:30:59.947-04:00[America/St_Lucia]
2023-04-17T06:30:59.947-04:00[America/St_Thomas]
2023-04-17T06:30:59.947-04:00[America/St_Vincent]
2023-04-17T04:30:59.947-06:00[America/Swift_Current]
2023-04-17T04:30:59.947-06:00[America/Tegucigalpa]
2023-04-17T07:30:59.947-03:00[America/Thule]
2023-04-17T06:30:59.947-04:00[America/Thunder_Bay]
2023-04-17T03:30:59.947-07:00[America/Tijuana]
2023-04-17T06:30:59.947-04:00[America/Toronto]
2023-04-17T06:30:59.947-04:00[America/Tortola]
2023-04-17T03:30:59.947-07:00[America/Vancouver]
2023-04-17T06:30:59.947-04:00[America/Virgin]
2023-04-17T03:30:59.947-07:00[America/Whitehorse]
2023-04-17T05:30:59.947-05:00[America/Winnipeg]
2023-04-17T02:30:59.947-08:00[America/Yakutat]
2023-04-17T04:30:59.947-06:00[America/Yellowknife]
2023-04-17T18:30:59.947+08:00[Antarctica/Casey]
2023-04-17T17:30:59.947+07:00[Antarctica/Davis]
2023-04-17T20:30:59.947+10:00[Antarctica/DumontDUrville]
2023-04-17T21:30:59.947+11:00[Antarctica/Macquarie]
2023-04-17T15:30:59.947+05:00[Antarctica/Mawson]
2023-04-17T22:30:59.947+12:00[Antarctica/McMurdo]
2023-04-17T07:30:59.947-03:00[Antarctica/Palmer]
2023-04-17T07:30:59.947-03:00[Antarctica/Rothera]
2023-04-17T22:30:59.947+12:00[Antarctica/South_Pole]
2023-04-17T13:30:59.947+03:00[Antarctica/Syowa]
2023-04-17T12:30:59.947+02:00[Antarctica/Troll]
2023-04-17T16:30:59.947+06:00[Antarctica/Vostok]
2023-04-17T12:30:59.947+02:00[Arctic/Longyearbyen]
2023-04-17T13:30:59.947+03:00[Asia/Aden]
2023-04-17T16:30:59.947+06:00[Asia/Almaty]
2023-04-17T13:30:59.947+03:00[Asia/Amman]
2023-04-17T22:30:59.947+12:00[Asia/Anadyr]
2023-04-17T15:30:59.947+05:00[Asia/Aqtau]
2023-04-17T15:30:59.947+05:00[Asia/Aqtobe]
2023-04-17T15:30:59.947+05:00[Asia/Ashgabat]
2023-04-17T15:30:59.947+05:00[Asia/Ashkhabad]
2023-04-17T15:30:59.947+05:00[Asia/Atyrau]
2023-04-17T13:30:59.947+03:00[Asia/Baghdad]
2023-04-17T13:30:59.947+03:00[Asia/Bahrain]
2023-04-17T14:30:59.947+04:00[Asia/Baku]
2023-04-17T17:30:59.947+07:00[Asia/Bangkok]
2023-04-17T17:30:59.947+07:00[Asia/Barnaul]
2023-04-17T13:30:59.947+03:00[Asia/Beirut]
2023-04-17T16:30:59.947+06:00[Asia/Bishkek]
2023-04-17T18:30:59.947+08:00[Asia/Brunei]
2023-04-17T16:00:59.947+05:30[Asia/Calcutta]
2023-04-17T19:30:59.947+09:00[Asia/Chita]
2023-04-17T18:30:59.947+08:00[Asia/Choibalsan]
2023-04-17T18:30:59.947+08:00[Asia/Chongqing]
2023-04-17T18:30:59.947+08:00[Asia/Chungking]
2023-04-17T16:00:59.947+05:30[Asia/Colombo]
2023-04-17T16:30:59.947+06:00[Asia/Dacca]
2023-04-17T13:30:59.947+03:00[Asia/Damascus]
2023-04-17T16:30:59.947+06:00[Asia/Dhaka]
2023-04-17T19:30:59.947+09:00[Asia/Dili]
2023-04-17T14:30:59.947+04:00[Asia/Dubai]
2023-04-17T15:30:59.947+05:00[Asia/Dushanbe]
2023-04-17T13:30:59.947+03:00[Asia/Famagusta]
2023-04-17T13:30:59.947+03:00[Asia/Gaza]
2023-04-17T18:30:59.947+08:00[Asia/Harbin]
2023-04-17T13:30:59.947+03:00[Asia/Hebron]
2023-04-17T17:30:59.947+07:00[Asia/Ho_Chi_Minh]
2023-04-17T18:30:59.947+08:00[Asia/Hong_Kong]
2023-04-17T17:30:59.947+07:00[Asia/Hovd]
2023-04-17T18:30:59.947+08:00[Asia/Irkutsk]
2023-04-17T13:30:59.947+03:00[Asia/Istanbul]
2023-04-17T17:30:59.947+07:00[Asia/Jakarta]
2023-04-17T19:30:59.947+09:00[Asia/Jayapura]
2023-04-17T13:30:59.947+03:00[Asia/Jerusalem]
2023-04-17T15:00:59.947+04:30[Asia/Kabul]
2023-04-17T22:30:59.947+12:00[Asia/Kamchatka]
2023-04-17T15:30:59.947+05:00[Asia/Karachi]
2023-04-17T16:30:59.947+06:00[Asia/Kashgar]
2023-04-17T16:15:59.947+05:45[Asia/Kathmandu]
2023-04-17T16:15:59.947+05:45[Asia/Katmandu]
2023-04-17T19:30:59.947+09:00[Asia/Khandyga]
2023-04-17T16:00:59.947+05:30[Asia/Kolkata]
2023-04-17T17:30:59.947+07:00[Asia/Krasnoyarsk]
2023-04-17T18:30:59.947+08:00[Asia/Kuala_Lumpur]
2023-04-17T18:30:59.947+08:00[Asia/Kuching]
2023-04-17T13:30:59.947+03:00[Asia/Kuwait]
2023-04-17T18:30:59.947+08:00[Asia/Macao]
2023-04-17T18:30:59.947+08:00[Asia/Macau]
2023-04-17T21:30:59.947+11:00[Asia/Magadan]
2023-04-17T18:30:59.947+08:00[Asia/Makassar]
2023-04-17T18:30:59.947+08:00[Asia/Manila]
2023-04-17T14:30:59.947+04:00[Asia/Muscat]
2023-04-17T13:30:59.947+03:00[Asia/Nicosia]
2023-04-17T17:30:59.947+07:00[Asia/Novokuznetsk]
2023-04-17T17:30:59.947+07:00[Asia/Novosibirsk]
2023-04-17T16:30:59.947+06:00[Asia/Omsk]
2023-04-17T15:30:59.947+05:00[Asia/Oral]
2023-04-17T17:30:59.947+07:00[Asia/Phnom_Penh]
2023-04-17T17:30:59.947+07:00[Asia/Pontianak]
2023-04-17T19:30:59.947+09:00[Asia/Pyongyang]
2023-04-17T13:30:59.947+03:00[Asia/Qatar]
2023-04-17T16:30:59.947+06:00[Asia/Qyzylorda]
2023-04-17T17:00:59.947+06:30[Asia/Rangoon]
2023-04-17T13:30:59.947+03:00[Asia/Riyadh]
2023-04-17T17:30:59.947+07:00[Asia/Saigon]
2023-04-17T21:30:59.947+11:00[Asia/Sakhalin]
2023-04-17T15:30:59.947+05:00[Asia/Samarkand]
2023-04-17T19:30:59.947+09:00[Asia/Seoul]
2023-04-17T18:30:59.947+08:00[Asia/Shanghai]
2023-04-17T18:30:59.947+08:00[Asia/Singapore]
2023-04-17T21:30:59.947+11:00[Asia/Srednekolymsk]
2023-04-17T18:30:59.947+08:00[Asia/Taipei]
2023-04-17T15:30:59.947+05:00[Asia/Tashkent]
2023-04-17T14:30:59.947+04:00[Asia/Tbilisi]
2023-04-17T15:00:59.947+04:30[Asia/Tehran]
2023-04-17T13:30:59.947+03:00[Asia/Tel_Aviv]
2023-04-17T16:30:59.947+06:00[Asia/Thimbu]
2023-04-17T16:30:59.947+06:00[Asia/Thimphu]
2023-04-17T19:30:59.947+09:00[Asia/Tokyo]
2023-04-17T17:30:59.947+07:00[Asia/Tomsk]
2023-04-17T18:30:59.947+08:00[Asia/Ujung_Pandang]
2023-04-17T18:30:59.947+08:00[Asia/Ulaanbaatar]
2023-04-17T18:30:59.947+08:00[Asia/Ulan_Bator]
2023-04-17T16:30:59.947+06:00[Asia/Urumqi]
2023-04-17T20:30:59.947+10:00[Asia/Ust-Nera]
2023-04-17T17:30:59.947+07:00[Asia/Vientiane]
2023-04-17T20:30:59.947+10:00[Asia/Vladivostok]
2023-04-17T19:30:59.947+09:00[Asia/Yakutsk]
2023-04-17T17:00:59.947+06:30[Asia/Yangon]
2023-04-17T15:30:59.947+05:00[Asia/Yekaterinburg]
2023-04-17T14:30:59.947+04:00[Asia/Yerevan]
2023-04-17T10:30:59.947Z[Atlantic/Azores]
2023-04-17T07:30:59.947-03:00[Atlantic/Bermuda]
2023-04-17T11:30:59.947+01:00[Atlantic/Canary]
2023-04-17T09:30:59.947-01:00[Atlantic/Cape_Verde]
2023-04-17T11:30:59.947+01:00[Atlantic/Faeroe]
2023-04-17T11:30:59.947+01:00[Atlantic/Faroe]
2023-04-17T12:30:59.947+02:00[Atlantic/Jan_Mayen]
2023-04-17T11:30:59.947+01:00[Atlantic/Madeira]
2023-04-17T10:30:59.947Z[Atlantic/Reykjavik]
2023-04-17T08:30:59.947-02:00[Atlantic/South_Georgia]
2023-04-17T10:30:59.947Z[Atlantic/St_Helena]
2023-04-17T07:30:59.947-03:00[Atlantic/Stanley]
2023-04-17T20:30:59.947+10:00[Australia/ACT]
2023-04-17T20:00:59.947+09:30[Australia/Adelaide]
2023-04-17T20:30:59.947+10:00[Australia/Brisbane]
2023-04-17T20:00:59.947+09:30[Australia/Broken_Hill]
2023-04-17T20:30:59.947+10:00[Australia/Canberra]
2023-04-17T20:30:59.947+10:00[Australia/Currie]
2023-04-17T20:00:59.947+09:30[Australia/Darwin]
2023-04-17T19:15:59.947+08:45[Australia/Eucla]
2023-04-17T20:30:59.947+10:00[Australia/Hobart]
2023-04-17T21:00:59.947+10:30[Australia/LHI]
2023-04-17T20:30:59.947+10:00[Australia/Lindeman]
2023-04-17T21:00:59.947+10:30[Australia/Lord_Howe]
2023-04-17T20:30:59.947+10:00[Australia/Melbourne]
2023-04-17T20:30:59.947+10:00[Australia/NSW]
2023-04-17T20:00:59.947+09:30[Australia/North]
2023-04-17T18:30:59.947+08:00[Australia/Perth]
2023-04-17T20:30:59.947+10:00[Australia/Queensland]
2023-04-17T20:00:59.947+09:30[Australia/South]
2023-04-17T20:30:59.947+10:00[Australia/Sydney]
2023-04-17T20:30:59.947+10:00[Australia/Tasmania]
2023-04-17T20:30:59.947+10:00[Australia/Victoria]
2023-04-17T18:30:59.947+08:00[Australia/West]
2023-04-17T20:00:59.947+09:30[Australia/Yancowinna]
2023-04-17T05:30:59.947-05:00[Brazil/Acre]
2023-04-17T08:30:59.947-02:00[Brazil/DeNoronha]
2023-04-17T07:30:59.947-03:00[Brazil/East]
2023-04-17T06:30:59.947-04:00[Brazil/West]
2023-04-17T12:30:59.947+02:00[CET]
2023-04-17T05:30:59.947-05:00[CST6CDT]
2023-04-17T07:30:59.947-03:00[Canada/Atlantic]
2023-04-17T05:30:59.947-05:00[Canada/Central]
2023-04-17T06:30:59.947-04:00[Canada/Eastern]
2023-04-17T04:30:59.947-06:00[Canada/Mountain]
2023-04-17T08:00:59.947-02:30[Canada/Newfoundland]
2023-04-17T03:30:59.947-07:00[Canada/Pacific]
2023-04-17T04:30:59.947-06:00[Canada/Saskatchewan]
2023-04-17T03:30:59.947-07:00[Canada/Yukon]
2023-04-17T06:30:59.947-04:00[Chile/Continental]
2023-04-17T04:30:59.947-06:00[Chile/EasterIsland]
2023-04-17T06:30:59.947-04:00[Cuba]
2023-04-17T13:30:59.947+03:00[EET]
2023-04-17T06:30:59.947-04:00[EST5EDT]
2023-04-17T12:30:59.947+02:00[Egypt]
2023-04-17T11:30:59.947+01:00[Eire]
2023-04-17T10:30:59.947Z[Etc/GMT]
2023-04-17T10:30:59.947Z[Etc/GMT+0]
2023-04-17T09:30:59.947-01:00[Etc/GMT+1]
2023-04-17T00:30:59.947-10:00[Etc/GMT+10]
2023-04-16T23:30:59.947-11:00[Etc/GMT+11]
2023-04-16T22:30:59.947-12:00[Etc/GMT+12]
2023-04-17T08:30:59.947-02:00[Etc/GMT+2]
2023-04-17T07:30:59.947-03:00[Etc/GMT+3]
2023-04-17T06:30:59.947-04:00[Etc/GMT+4]
2023-04-17T05:30:59.947-05:00[Etc/GMT+5]
2023-04-17T04:30:59.947-06:00[Etc/GMT+6]
2023-04-17T03:30:59.947-07:00[Etc/GMT+7]
2023-04-17T02:30:59.947-08:00[Etc/GMT+8]
2023-04-17T01:30:59.947-09:00[Etc/GMT+9]
2023-04-17T10:30:59.947Z[Etc/GMT-0]
2023-04-17T11:30:59.947+01:00[Etc/GMT-1]
2023-04-17T20:30:59.947+10:00[Etc/GMT-10]
2023-04-17T21:30:59.947+11:00[Etc/GMT-11]
2023-04-17T22:30:59.947+12:00[Etc/GMT-12]
2023-04-17T23:30:59.947+13:00[Etc/GMT-13]
2023-04-18T00:30:59.947+14:00[Etc/GMT-14]
2023-04-17T12:30:59.947+02:00[Etc/GMT-2]
2023-04-17T13:30:59.947+03:00[Etc/GMT-3]
2023-04-17T14:30:59.947+04:00[Etc/GMT-4]
2023-04-17T15:30:59.947+05:00[Etc/GMT-5]
2023-04-17T16:30:59.947+06:00[Etc/GMT-6]
2023-04-17T17:30:59.947+07:00[Etc/GMT-7]
2023-04-17T18:30:59.947+08:00[Etc/GMT-8]
2023-04-17T19:30:59.947+09:00[Etc/GMT-9]
2023-04-17T10:30:59.947Z[Etc/GMT0]
2023-04-17T10:30:59.947Z[Etc/Greenwich]
2023-04-17T10:30:59.947Z[Etc/UCT]
2023-04-17T10:30:59.947Z[Etc/UTC]
2023-04-17T10:30:59.947Z[Etc/Universal]
2023-04-17T10:30:59.947Z[Etc/Zulu]
2023-04-17T12:30:59.947+02:00[Europe/Amsterdam]
2023-04-17T12:30:59.947+02:00[Europe/Andorra]
2023-04-17T14:30:59.947+04:00[Europe/Astrakhan]
2023-04-17T13:30:59.947+03:00[Europe/Athens]
2023-04-17T11:30:59.947+01:00[Europe/Belfast]
2023-04-17T12:30:59.947+02:00[Europe/Belgrade]
2023-04-17T12:30:59.947+02:00[Europe/Berlin]
2023-04-17T12:30:59.947+02:00[Europe/Bratislava]
2023-04-17T12:30:59.947+02:00[Europe/Brussels]
2023-04-17T13:30:59.947+03:00[Europe/Bucharest]
2023-04-17T12:30:59.947+02:00[Europe/Budapest]
2023-04-17T12:30:59.947+02:00[Europe/Busingen]
2023-04-17T13:30:59.947+03:00[Europe/Chisinau]
2023-04-17T12:30:59.947+02:00[Europe/Copenhagen]
2023-04-17T11:30:59.947+01:00[Europe/Dublin]
2023-04-17T12:30:59.947+02:00[Europe/Gibraltar]
2023-04-17T11:30:59.947+01:00[Europe/Guernsey]
2023-04-17T13:30:59.947+03:00[Europe/Helsinki]
2023-04-17T11:30:59.947+01:00[Europe/Isle_of_Man]
2023-04-17T13:30:59.947+03:00[Europe/Istanbul]
2023-04-17T11:30:59.947+01:00[Europe/Jersey]
2023-04-17T12:30:59.947+02:00[Europe/Kaliningrad]
2023-04-17T13:30:59.947+03:00[Europe/Kiev]
2023-04-17T13:30:59.947+03:00[Europe/Kirov]
2023-04-17T11:30:59.947+01:00[Europe/Lisbon]
2023-04-17T12:30:59.947+02:00[Europe/Ljubljana]
2023-04-17T11:30:59.947+01:00[Europe/London]
2023-04-17T12:30:59.947+02:00[Europe/Luxembourg]
2023-04-17T12:30:59.947+02:00[Europe/Madrid]
2023-04-17T12:30:59.947+02:00[Europe/Malta]
2023-04-17T13:30:59.947+03:00[Europe/Mariehamn]
2023-04-17T13:30:59.947+03:00[Europe/Minsk]
2023-04-17T12:30:59.947+02:00[Europe/Monaco]
2023-04-17T13:30:59.947+03:00[Europe/Moscow]
2023-04-17T13:30:59.947+03:00[Europe/Nicosia]
2023-04-17T12:30:59.947+02:00[Europe/Oslo]
2023-04-17T12:30:59.947+02:00[Europe/Paris]
2023-04-17T12:30:59.947+02:00[Europe/Podgorica]
2023-04-17T12:30:59.947+02:00[Europe/Prague]
2023-04-17T13:30:59.947+03:00[Europe/Riga]
2023-04-17T12:30:59.947+02:00[Europe/Rome]
2023-04-17T14:30:59.947+04:00[Europe/Samara]
2023-04-17T12:30:59.947+02:00[Europe/San_Marino]
2023-04-17T12:30:59.947+02:00[Europe/Sarajevo]
2023-04-17T14:30:59.947+04:00[Europe/Saratov]
2023-04-17T13:30:59.947+03:00[Europe/Simferopol]
2023-04-17T12:30:59.947+02:00[Europe/Skopje]
2023-04-17T13:30:59.947+03:00[Europe/Sofia]
2023-04-17T12:30:59.947+02:00[Europe/Stockholm]
2023-04-17T13:30:59.947+03:00[Europe/Tallinn]
2023-04-17T12:30:59.947+02:00[Europe/Tirane]
2023-04-17T13:30:59.947+03:00[Europe/Tiraspol]
2023-04-17T14:30:59.947+04:00[Europe/Ulyanovsk]
2023-04-17T13:30:59.947+03:00[Europe/Uzhgorod]
2023-04-17T12:30:59.947+02:00[Europe/Vaduz]
2023-04-17T12:30:59.947+02:00[Europe/Vatican]
2023-04-17T12:30:59.947+02:00[Europe/Vienna]
2023-04-17T13:30:59.947+03:00[Europe/Vilnius]
2023-04-17T14:30:59.947+04:00[Europe/Volgograd]
2023-04-17T12:30:59.947+02:00[Europe/Warsaw]
2023-04-17T12:30:59.947+02:00[Europe/Zagreb]
2023-04-17T13:30:59.947+03:00[Europe/Zaporozhye]
2023-04-17T12:30:59.947+02:00[Europe/Zurich]
2023-04-17T11:30:59.947+01:00[GB]
2023-04-17T11:30:59.947+01:00[GB-Eire]
2023-04-17T10:30:59.947Z[GMT]
2023-04-17T10:30:59.947Z[GMT0]
2023-04-17T10:30:59.947Z[Greenwich]
2023-04-17T18:30:59.947+08:00[Hongkong]
2023-04-17T10:30:59.947Z[Iceland]
2023-04-17T13:30:59.947+03:00[Indian/Antananarivo]
2023-04-17T16:30:59.947+06:00[Indian/Chagos]
2023-04-17T17:30:59.947+07:00[Indian/Christmas]
2023-04-17T17:00:59.947+06:30[Indian/Cocos]
2023-04-17T13:30:59.947+03:00[Indian/Comoro]
2023-04-17T15:30:59.947+05:00[Indian/Kerguelen]
2023-04-17T14:30:59.947+04:00[Indian/Mahe]
2023-04-17T15:30:59.947+05:00[Indian/Maldives]
2023-04-17T14:30:59.947+04:00[Indian/Mauritius]
2023-04-17T13:30:59.947+03:00[Indian/Mayotte]
2023-04-17T14:30:59.947+04:00[Indian/Reunion]
2023-04-17T15:00:59.947+04:30[Iran]
2023-04-17T13:30:59.947+03:00[Israel]
2023-04-17T05:30:59.947-05:00[Jamaica]
2023-04-17T19:30:59.947+09:00[Japan]
2023-04-17T22:30:59.947+12:00[Kwajalein]
2023-04-17T12:30:59.947+02:00[Libya]
2023-04-17T12:30:59.947+02:00[MET]
2023-04-17T04:30:59.947-06:00[MST7MDT]
2023-04-17T03:30:59.947-07:00[Mexico/BajaNorte]
2023-04-17T04:30:59.947-06:00[Mexico/BajaSur]
2023-04-17T05:30:59.947-05:00[Mexico/General]
2023-04-17T22:30:59.947+12:00[NZ]
2023-04-17T23:15:59.947+12:45[NZ-CHAT]
2023-04-17T04:30:59.947-06:00[Navajo]
2023-04-17T18:30:59.947+08:00[PRC]
2023-04-17T03:30:59.947-07:00[PST8PDT]
2023-04-17T23:30:59.947+13:00[Pacific/Apia]
2023-04-17T22:30:59.947+12:00[Pacific/Auckland]
2023-04-17T21:30:59.947+11:00[Pacific/Bougainville]
2023-04-17T23:15:59.947+12:45[Pacific/Chatham]
2023-04-17T20:30:59.947+10:00[Pacific/Chuuk]
2023-04-17T04:30:59.947-06:00[Pacific/Easter]
2023-04-17T21:30:59.947+11:00[Pacific/Efate]
2023-04-17T23:30:59.947+13:00[Pacific/Enderbury]
2023-04-17T23:30:59.947+13:00[Pacific/Fakaofo]
2023-04-17T22:30:59.947+12:00[Pacific/Fiji]
2023-04-17T22:30:59.947+12:00[Pacific/Funafuti]
2023-04-17T04:30:59.947-06:00[Pacific/Galapagos]
2023-04-17T01:30:59.947-09:00[Pacific/Gambier]
2023-04-17T21:30:59.947+11:00[Pacific/Guadalcanal]
2023-04-17T20:30:59.947+10:00[Pacific/Guam]
2023-04-17T00:30:59.947-10:00[Pacific/Honolulu]
2023-04-17T00:30:59.947-10:00[Pacific/Johnston]
2023-04-18T00:30:59.947+14:00[Pacific/Kiritimati]
2023-04-17T21:30:59.947+11:00[Pacific/Kosrae]
2023-04-17T22:30:59.947+12:00[Pacific/Kwajalein]
2023-04-17T22:30:59.947+12:00[Pacific/Majuro]
2023-04-17T01:00:59.947-09:30[Pacific/Marquesas]
2023-04-16T23:30:59.947-11:00[Pacific/Midway]
2023-04-17T22:30:59.947+12:00[Pacific/Nauru]
2023-04-16T23:30:59.947-11:00[Pacific/Niue]
2023-04-17T21:30:59.947+11:00[Pacific/Norfolk]
2023-04-17T21:30:59.947+11:00[Pacific/Noumea]
2023-04-16T23:30:59.947-11:00[Pacific/Pago_Pago]
2023-04-17T19:30:59.947+09:00[Pacific/Palau]
2023-04-17T02:30:59.947-08:00[Pacific/Pitcairn]
2023-04-17T21:30:59.947+11:00[Pacific/Pohnpei]
2023-04-17T21:30:59.947+11:00[Pacific/Ponape]
2023-04-17T20:30:59.947+10:00[Pacific/Port_Moresby]
2023-04-17T00:30:59.947-10:00[Pacific/Rarotonga]
2023-04-17T20:30:59.947+10:00[Pacific/Saipan]
2023-04-16T23:30:59.947-11:00[Pacific/Samoa]
2023-04-17T00:30:59.947-10:00[Pacific/Tahiti]
2023-04-17T22:30:59.947+12:00[Pacific/Tarawa]
2023-04-17T23:30:59.947+13:00[Pacific/Tongatapu]
2023-04-17T20:30:59.947+10:00[Pacific/Truk]
2023-04-17T22:30:59.947+12:00[Pacific/Wake]
2023-04-17T22:30:59.947+12:00[Pacific/Wallis]
2023-04-17T20:30:59.947+10:00[Pacific/Yap]
2023-04-17T12:30:59.947+02:00[Poland]
2023-04-17T11:30:59.947+01:00[Portugal]
2023-04-17T19:30:59.947+09:00[ROK]
2023-04-17T18:30:59.947+08:00[Singapore]
2023-04-17T06:30:59.947-04:00[SystemV/AST4]
2023-04-17T06:30:59.947-04:00[SystemV/AST4ADT]
2023-04-17T04:30:59.947-06:00[SystemV/CST6]
2023-04-17T04:30:59.947-06:00[SystemV/CST6CDT]
2023-04-17T05:30:59.947-05:00[SystemV/EST5]
2023-04-17T05:30:59.947-05:00[SystemV/EST5EDT]
2023-04-17T00:30:59.947-10:00[SystemV/HST10]
2023-04-17T03:30:59.947-07:00[SystemV/MST7]
2023-04-17T03:30:59.947-07:00[SystemV/MST7MDT]
2023-04-17T02:30:59.947-08:00[SystemV/PST8]
2023-04-17T02:30:59.947-08:00[SystemV/PST8PDT]
2023-04-17T01:30:59.947-09:00[SystemV/YST9]
2023-04-17T01:30:59.947-09:00[SystemV/YST9YDT]
2023-04-17T13:30:59.947+03:00[Turkey]
2023-04-17T10:30:59.947Z[UCT]
...
2023-04-17T10:30:59.947Z[Zulu]

相关问题