How to reference timerange value in scripted field?

I can't see that this would be possible, as the script won't know the time range you have used.