time_source_get_parent

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

The returned value may be 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);

ArgumentTypeDescription
idTime SourceThe 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.