Market Closing Time

Is there a function that can determine what time trading stops on fridays, GMT?

Yes.

Query price history and see what time it gives up every Friday in the past.

[Deleted]
c0d3 wrote >>
Is there a function that can determine what time trading stops on fridays, GMT?

Check with your broker