If function help

I’m trying to create my own time system but the if command doesn’t seem to be working.

var Year = 2012;
var Month : float;
var Week : float;
var Day : float;
var Hour : float;
var Minute : float = 0;
var seconds : float = 0;

//Private vars
private var YearCalculator = 0;
private var MonthCalculator : float;
private var WeekCalculator : float;
private var DayCalculator : float;
private var HourCalculator : float;
private var MinuteCalculator : float;
private var SecondCalculator : float = 0;

function Start () {

}

function Update() {
//Seconds counter
  seconds += Time.deltaTime;
}


	if (seconds >= 5)
{
  	Minute +=1;
}

Can someone help me please ;_;

Your if is outside the update.

function Update() {
  seconds += Time.deltaTime;
  if (seconds >= 5)
       Minute +=1;
}

EDIT:

function Start(){
InvokeRepeating("IncreaseMin",1.0f,1.0f);
}

function IncreaseMin(){
minute+=1;
}

What it does is invoke/call the given function, IncreaseMin in our case. The second parameter tells when you want the first call, in our case after 1s. The third parameter is the frequency of the next calls, 1s again. So after 1s, the IncreaseMin will be called every second.

InvokeRepeating("IncreaseMin",10.0f,20.0f); 

See now, first call after 10 of game and next calls will come every 20s.

Got it? This is really useful for avoiding all kind of timer when your game needs them. You can also use it to save resources. For instance AI are often doing tricky and expensive calculation, you can save resources by triggering this calculation only every 2s instead of 60times/second. See my point?