using GLib;

public class Test.Timer : Object {

    public int year {get; construct;}
    public int month {get; construct;}
    public int day {get; construct;}
    public int hour {get; construct;}
    public int minute {get; construct;}
    public Time TimeTM; 
    
    public Timer (int year, int month, int day, int hour, int minute) {
        this.year = year;
	this.month = month;
	this.day = day;
	this.hour = hour;
	this.minute = minute;
    }
    
    construct {
      this.TimeTM = this.create_time (year, month, day, hour, minute);
    }

    private Time create_time (int year, int month, int day, int hour, int minute) {
        var t = Time ();
        
        t.year = year - 1900;
        t.month = month - 1;
        t.day = day;
        t.hour = hour;
        t.minute = minute;
        
        return t;
    }
    
    public static void main (string[] args) {
        var t = new Test.Timer (2008, 5, 25, 14, 30);
	message (t.TimeTM.to_string ());
    }

}
