How to get current System time in unity using java script?

Hi All,

In my project i want to set the Timer[Like digital clock(00:00)].After launching my application it should take automatically system time and display in my application.Now i can able to set the timer.But i want to set current system time.For this i tried.But i didn’t get the solution.If anybody know about this stuff,please share with me.

Thanks in Advance,

Hi All,

If anybody know about this stuff,please reply.i am struggling this past two days.Please reply.

Thanks

function Update() {
 var dt : System.DateTime = System.DateTime.Now;
 var h : int = dt.Hour;
 var m : int = dt.Minute;
 var s : int = dt.Second;
}
[quote]
I think this should work for you.

Harry
[/quote]

Hi,

Its functioning very well.Thank you so much.