How to send Playing Time to Google Leaderboard?

How to send Playing Time to Google Leaderboard?
Time or Datetime

Hi @Ancy. I recently needed to do the same. Here is my result which works. Note: Make sure to report the time in milliseconds (So for me, I had to multiply my total time in seconds by 1000).

private void PostTimeOnline() {

        if (PlayGamesPlatform.Instance.IsAuthenticated()) {

            // report total play time
            Social.ReportScore((long) (GameInfo.TimeTotalPlay * 1000), GPGSIds.leaderboard_playtime, (bool success) => {
                if (!success) {
                    Debug.LogError("Error posting to leaderboard_playtime");
                }
            });
        }
    }

TimeTotalPlay is a float ?