time_source_get_parent

This function returns the Time Source of the given Time Source's parent.

The returned value may be the ID of a custom Time Source, or one of the Built-In Time Sources, depending on how the given Time Source was created.

 

Syntax:

time_source_get_parent(id);

Argument Type Description
id Time Source The Time Source to get the parent of

 

Returns:

Time Source

 

Example:

var _parent = time_source_get_parent(time_source);

This code gets the parent of a Time Source and stores it in a local variable.