public static int CompareTimes(Dictionary<string, int> x, Dictionary<string, int> y)
{
if (x["hours"] > y["hours"])
{
return 1;
}
else if (x["hours"] < y["hours"])
{
return -1;
}
else if (x["hours"] == y["hours"] && x["minutes"] > y["minutes"])
{
return 1;
}
else if (x["hours"] == y["hours"] && x["minutes"] < y["minutes"])
{
return -1;
}
else
{
return 0;
}
}