Hello, I'm struggling in TimeSpan class's error on ios platform(System.TimeSpan).
Whenever I use TimeSpan.FromSeconds, it throws out outside range exception [MinValue, MaxValue],
so I tried to show the two values.
Just use
Debug.Log(TimeSpan.MinValue.TotalSeconds.ToString() + "," + TimeSpan.MaxValue.TotalSeconds.ToString());
In editor, it prints the right value which is "-922337203685.478,922337203685.478".
But on ios, the same code prints "4.0917397079469E+142,4.0917397079469E+142", that's really not right, and I guess it is this bug which caused the exception.
I know I can write a timespan class by myself but I'm wondering if I did something wrong because I cannot see anyone else find the same bug, or it is really a bug.
↧