using System;
public class Time
{
    // prywatne zmienne składowe
    int year;
    int month;
    int date;
    int hour;
    int minute;
    int second = 30;

    // metoda publiczna
    public void DisplayCurrentTime()
    {
        System.Console.WriteLine("{0}-{1}-{2} {3}:{4}:{5}", year, month, date, hour,
           minute, second);
    }

    // konstruktor
    public Time(int theYear, int theMonth, int theDate, int theHour, int theMinute)
    {
        year = theYear;
        month = theMonth;
        date = theDate;
        hour = theHour;
        minute = theMinute;
    }
}

public class Tester
{
    static void Main()
    {
        Time timeObject = new Time(2008, 8, 1, 9, 35);
        timeObject.DisplayCurrentTime();
    }
}