Current chart timeframe

 
Is it possible to obtain the value of the timeframe of the current chart; e.g. to display in an Alert?
 
 
That's great, thanks.