How can I take sample of the last 60sec in 1 second interval using date and time functions?

 
How to take sample of the last 60sec in 1 second interval. (Assuming that all predefined variables' values historic data include some kind of time value - correct me if they don't)

i.e. (the date and time now is Dec 18, 2010 @ 12:30:27')

D'2010.12.18 12:30:27'

price at time[0] - (price at time current), which is 12:30:27'

price at time[1] - (price at time current minus 1 second), which is 12:30:26'

price at time[3] - (price at time current minus 2 second), which is 12:30:25'

and so on ...


Anyone could code this???

Thanks!

 
History data is only scaled down to one Minute, you can't calculate smaller timeframes for the history..
Reason: