public void configure(DayElement dayElement, SleepElement sleepElement, bool interactable)
    {
        this.dayElement   = dayElement;
        this.sleepElement = sleepElement;
        this.interactable = interactable;

        String count = "";

        if (sleepElement.GetRecords().Count > 1)
        {
            count = (sleepElement.GetRecords().Count - 1) + "";
        }
        this.sleepUnits.text = count;
        this.duration.text   = TimeRecordUtility.MiliSecToDuration(sleepElement.GetTotalSleepTime());

        Record[] array         = sleepElement.GetRecords().ToArray();
        String   startDateTime = TimeRecordUtility.DateTimeToTimeString(array[array.Length - 1].getStartDateTime());
        String   endDateTime   = TimeRecordUtility.DateTimeToTimeString(array[0].getEndDateTime());

        this.fromTo.text = startDateTime + " - " + endDateTime;
    }