//1.获取所有的时区名称
SetzoneIds =ZoneId.getAvailableZoneIds();
System.out.println(zoneIds.size());//600
System.out.println(zoneIds);//Asia/shanghai
//2.获取当前系统的默认时区
ZoneId zoneId= ZoneId.systemDefault();
System.out.println(zoneId);//Asia/shanghai
//3.获取指定的时区
ZoneId zoneId1 =zoneId.of("Asia/Pontianak");
System.out.println(zoneId1);//Asia/Pontianak
//1.获取当前时间的Instant对象(标准时间)
Instant now= Instant.now();
system.out.println(now);
//2.根据(秒/亳秒/纳秒)获取Instant对象
Instant instant1 = Instant.ofEpochMilli(0L);
System.out.println(instant1);//1970-01-01T00:00:00z
Instant instant2 = Instant.ofEpochSecond(1L);
System.out.println(instant2);//1970-01-01T00:00:01z
Instant instant3 = Instant.ofEpochsecond( epochSecond: 1L, nanoAdjustment: 1000000000L);
System.out.println(instant3);//1970-01-01T00:00:02z
//3.指定时区
ZonedDateTime time = Instant.now().atZone(ZoneId.of("Asia/shanghai"));
System.out.println(time);
//4.isXxx 判断
Instant instant4 = Instant.ofEpochMilli(0L);
Instant instant5 = Instant.ofEpochMilli(1000L);
boolean result1 = instant4.isBefore(instant5);
System.out.println(result1);//true instant4在不在instant5的前面