script used for display time in digital display
Check out this link!
Your question leaves a lot to be desired. Which time are you talking about? System time? If so, you can do this:
function OnGUI () {
GUI.Label (Rect (10, 10, 100, 20), System.DateTime.Now.ToString("hh:mm"));
}
Otherwise if you’re using say Time.time or Time.timeSinceLevelLoad, obviously just use them alongside a .ToString() in that same code.
If those aren’t what you want, perhaps you should try asking a more specific question.
Is there a way to do this with the new UI text?