Example #1
0
        private static async Task <string> WeatherInfo(string zoneName)
        {
            var response = await TimeZoneService.GetWeatherInfo(zoneName);

            string strMessage;

            if (response.Status == "OK")
            {
                var currentTime = response.Timestamp;
                var dateTime    = ConvertFromUnixTimestamp(currentTime);

                strMessage = string.Format("The current Time  for {0} is {1}  ", zoneName, dateTime);
                return(strMessage);
            }
            strMessage = string.Format("Please check the zone format {0}", zoneName);
            return(strMessage);
        }