GameKit.Leaderboard.SetTimeScope
--------------------------------

Sets time scope.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [GameKit](component_GameKit.md) | [8.5](newinversion85.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "GameKit.Leaderboard.SetTimeScope"; LeaderboardIdentifier; TimeScope ) 

**MBS**( **"GameKit.Leaderboard.SetTimeScope";** /\* Sets time scope. \*/  
**$LeaderboardIdentifier**; /\* The identifier of the leaderboard. \*/   
**$TimeScope**) /\* Can be "Week", "Today" or "AllTime".e.g. "Week" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| LeaderboardIdentifier | The identifier of the leaderboard. |  |
| TimeScope | Can be "Week", "Today" or "AllTime". | "Week" |

### Result

Returns OK or error.

### Description

Sets time scope.  
A filter used to restrict the search to scores that were posted within a specific period of time.  
Can be "Week", "Today" or "AllTime".  
### See also

- [GameKit.Leaderboard.GetPlayerScope](GameKitLeaderboardGetPlayerScope.md)
- [GameKit.Leaderboard.GetTimeScope](GameKitLeaderboardGetTimeScope.md)
- [GameKit.Leaderboard.SetPlayerScope](GameKitLeaderboardSetPlayerScope.md)
- [GameKit.Leaderboard.SetRange](GameKitLeaderboardSetRange.md)
- [GameKit.LeaderboardSet.Image](GameKitLeaderboardSetImage.md)
- [GameKit.LeaderboardSet.Title](GameKitLeaderboardSetTitle.md)

This function is free to use.

Created 5th November 2018 , last changed 8th November 2018

  
[GameKit.Leaderboard.SetRange](GameKitLeaderboardSetRange.md) - [GameKit.Leaderboard.Title](GameKitLeaderboardTitle.md)

[HTML Version](GameKitLeaderboardSetTimeScope.shtml)