title: How can i know if current time is 5 am in specific time zone
body: <p>My system time zone is utc.
  How can I know using java date time api if its 5am in a given timezone?</p>
  <p>How can I use zone date time for this?</p>
  <p>Is it 5am in singapore now?
  Is it 5am in india now?
  Is it 5am in austria now?</p>
  <p>Thanks</p>
  <p>This is my final logic. After working on the solutions below.</p>
  <pre><code>    public class MorningReminderScheduler {
  
      @Scheduled( cron=&quot;0 0/5 * * * *  &quot;)
      public static void main(String args[]){
          DateTimeFormatter formatter = DateTimeFormatter.ofPattern(&quot;HH:mm:ss&quot;);
          for (String zoneId : ZoneId.getAvailableZoneIds()) {
              ZoneId z = ZoneId.of(zoneId);
              // LocalDateTime -&gt; ZonedDateTime
              LocalTime l= LocalTime.now(z);
              if(l.getHour()==5 &amp;&amp; l.getMinute()&lt;5){
                  System.out.println(&quot;its between 5 hour to 5 hour 5 min in  = &quot; + z.getId());
              }
          }
      }
  }
  </code></pre>