Schedule.SetTimeStamp
---------------------

Sets the timestamp where a schedule runs the next time.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Schedule](component_Schedule.md) | [5.2](newinversion52.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "Schedule.SetTimeStamp"; ScheduleRef; TimeStamp ) 

**MBS**( **"Schedule.SetTimeStamp";** /\* Sets the timestamp where a schedule runs the next time. \*/  
**$ScheduleRef**; /\* The reference for a scheduled script call or sql query as returned by Schedule.StartScript\* functions or Schedule.ExecuteSQL\* functions.e.g. $ref \*/   
**$TimeStamp**) /\* The new time stamp. This moves the schedule to run on a different time.e.g. Get(CurrentTimestamp) + 60 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ScheduleRef | The reference for a scheduled script call or sql query as returned by Schedule.StartScript\* functions or Schedule.ExecuteSQL\* functions. | $ref |
| TimeStamp | The new time stamp. This moves the schedule to run on a different time. | Get(CurrentTimestamp) + 60 |

### Result

Returns OK or error.

### Description

Sets the timestamp where a schedule runs the next time.  
### Examples

Move next execution to now plus 10 seconds:

 MBS ( "Schedule.SetTimeStamp"; $ScheduleRef ; Get(CurrentTimeStamp) + 10 )  
### See also

- [Schedule.GetLastTimeStamp](ScheduleGetLastTimeStamp.md)
- [Schedule.GetTimeStamp](ScheduleGetTimeStamp.md)
- [Schedule.SetFileName](ScheduleSetFileName.md)

This function checks for a license.

Created 20th May 2015 , last changed 27th May 2015

  
[Schedule.SetTag](ScheduleSetTag.md) - [Schedule.SetURL](ScheduleSetURL.md)

[HTML Version](ScheduleSetTimeStamp.shtml)