/Day-Recognizer

A program to seperate the given time intervals into days written in C#

Primary LanguageC#MIT LicenseMIT

Day-Recognizer

A program to seperate the given time intervals into days written in C#.

This program takes an array of intervals and returns an arraylist which contains the first and last hour of a day as one of its elements.

The program works as the following:

We have an ArrayList that could have from 1 to 4 (n + 1) items:

"1, 07:00,08:00"
"2, 08:00,00:00"
-------------> Right here the day changes
"0, 00:00,06:00"
"1, 06:00,06:59"

==============================
So we need an ArrayList with these two items.

"07:00,00:00"
-------------> Right here the day changes
"00:00,06:59"