title: How to state it as day or evening from sunrise and sunset timings?
body: <p>From some api I'am getting the sunrise and sunset timings as 06:42 and 17:57 respectively. When the time is greater or equal to 06:42 it must display 'DAY' and when greater than or equal to 17:57 must display 'EVENING'.How to do it? </p>
  
  <p>App.js</p>
  
  <pre><code>fetch(`${IP_LOCATION}&amp;lat=${lat}&amp;long=${lon}`)
    .then(res =&gt; res.json()).then(responseJson =&gt; {
      console.log('DATA', responseJson)
      try {
        this.setState({
          sunrise: responseJson.sunrise,
          sunset: responseJson.sunset,
        })
  
      } catch {
        toast.error('No Data Received')
      }
  
    });
  
  
  render() {
        return (
          {console.log('sunrise', this.state.sunrise)}// returns 06:42
          {console.log('sunset', this.state.sunset)}// returns 17:57
          // How to display DAY and EVENING/NIGHT
  )
  } 
  
  export default App
  </code></pre>
  
  <p>As seen above, I get the sunrise and sunset values.</p>