public int ActualTime(HistoriWeatherInfo.root historiWeatherInfo) { UnixTime unixTime = new UnixTime(); int teraz = unixTime.DzisiajUnixTime(); teraz = teraz / 100; teraz = teraz * 100; int n = -1; for (int i = 0; i < historiWeatherInfo.hourly.Length; i++) { n++; if (historiWeatherInfo.hourly[i].dt == teraz) { break; } } return(n); }