Restricted time picker choices, and derived values?

Is it possible to restrict the choices displayed in the time picker - say for example to only “Month so far” and “Year so far”?

And is it possible to find the current selection in a global variable? I would like to drive query variables from the current selection, for example

$interval = select “interval” from intervals where range=“now/M”

Thanks!