How to dynamic get system time range variable?

Hi Yuyu,

I am a beginner for Grafana,Could you please tell me how should I use this code and place where to retrieve the time range variable data?
Thanks for your great support in advance.