Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

time.Time Question

Discussion in 'Scripting' started by ZO5KmUG6R, Oct 31, 2014.

  1. ZO5KmUG6R

    ZO5KmUG6R

    Joined:
    Jul 15, 2010
    Posts:
    490
    Hey guys! I am wondering if time.Time will ever reach float.MaxValue and start glitching out or something? Thanks :)
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Yes, but it will start having precision issues long before then. Don't use it for kiosk stuff that's intended to stay running for long periods of time, for example.

    --Eric
     
    ZO5KmUG6R and Dantus like this.
  3. ZO5KmUG6R

    ZO5KmUG6R

    Joined:
    Jul 15, 2010
    Posts:
    490
    Thanks! That should really be on the wiki :p