Convert Time (String) into System.Int64?

Hello,

I’m trying to submit a time score to apple’s Game Center, and it requires a ‘System.Int64’, although the documentation says an example of the time score can be: Elapsed Time (hours, minutes, seconds, ex. 5:01:18).

For testing purposes, I thought I could get away with doing this:

var randomTime = Random.Range(0,3) + ":" + Random.Range(0, 60) + ":" + Random.Range(0, 60);

But that gives out a string, so how can I make this work?

For some reason I can’t post this as a comment or use any formatting tools, that’s strange.

Anyway it looks like this has been asked before, I’m not very knowledgeable when it comes to apple stuff. Can you link to the documentation you are talking about?

These may help