Time filter variable output a string variable

Is it possible to output the time filter sql string to a variable, I want to insert each $__timeFilter selection to a database.

Alternatively is there a way to obtain the time selection and as you might obtain an annotation timestamp for example?

R