javascript System time and date?

hello.
How do you get the System-time in javascript?
for example put it into a vareable:

#pragma strickt
var time=0;
function Update () {
time = System.Time ← I imagine somthing like this…
}

You can use the .NET/Mono class System.DateTime.Now - the example below should be attached to a GUIText object, and shows the current hour/minute/seconds:

#pragma strict

function Update () {
	var t: System.DateTime = System.DateTime.Now;
	guiText.text = String.Format("{0:D2}:{1:D2}:{2:D2}", t.Hour, t.Minute, t.Second);
}

There are other properties in DateTime, like Month, Day, Year etc. - take a look at the MSDN docs.

Google is your friend, not an enemy.
System.DateTime.Now to get the current time on your local system. This should work hopefully.

Using realtimesincestartup i have:

var t = TimeSpan.FromSeconds(Time.realtimeSinceStartup);

status3 =  (pixelsFixed - pixelsecond).ToString() + "  more non-manifold pixels found, time is "+    String.Format("{0:D2}:{1:D2}:{2:D2}", t.Hours, t.Minutes, t.Seconds) +" minutes ";