• File: forecast_has_sun_time.class.php
  • Full Path: /home/bravrvjk/hpgt.org/wp-content/plugins/unlimited-elements-for-elementor/inc_php/framework/openweather/forecast/forecast_has_sun_time.class.php
  • Date Modified: 03/04/2024 8:06 PM
  • File size: 463 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

trait UEOpenWeatherAPIForecastHasSunTime{

	/**
	 * Get the sunrise time.
	 *
	 * @return string
	 */
	public function getSunrise(){

		$sunrise = $this->getAttribute("sunrise");
		$sunrise = $this->formatTime($sunrise, "H:i");

		return $sunrise;
	}

	/**
	 * Get the sunset time.
	 *
	 * @return string
	 */
	public function getSunset(){

		$sunset = $this->getAttribute("sunset");
		$sunset = $this->formatTime($sunset, "H:i");

		return $sunset;
	}

}