go implementation of strftime