title: Google Maps API | How to change map style (retro to night mode) when it's dark outside (time-dependant)?
body: <p>I'm currently working on a website project and for some reason, my client wants the embedded map to change style when it's dark outside.
  (Styles: retro and night mode)</p>
  
  <p>I just implemented the retro style for the map using the exact same code base
  I found at this <a href="https://developers.google.com/maps/documentation/javascript/examples/maptype-styled-simple" rel="nofollow noreferrer">GOOGLE</a> website.</p>
  
  <p>The styles for the night mode one can look up <a href="https://developers.google.com/maps/documentation/javascript/examples/style-array" rel="nofollow noreferrer">HERE</a>.</p>
  
  <p>My question:
  How can I toogle between those two map styles regarding a specific time that I can either set myself (i.e. 8pm) or how can one change the style depending on the sunrise/sunset in her or his specific time-zone?</p>
  
  <p>I didn't find any information on this topic in my online research and also not on google's developer sites.</p>
  
  <p>Any help would be kindly appreciated.</p>