Optimization of performance

Compare: http://jsperf.com/new-strftime