Get current timeframe () or the like..

 

can an indicator know what user selected timeframe its display is in?

if so, does anyone know how to do this?

 
 

thank you!

 

is that the only function i need?