code: def return_time_elements(time_stamp):
      
      yyyy = str(time_stamp.year)
      mm = "%02d" % (time_stamp.month,)
      dd = "%02d" % (time_stamp.day,)
      hr = "%02d" % (time_stamp.hour,)
      mins = "%02d" % (time_stamp.minute,)
      return yyyy, mm, dd, hr, mins
docs: Returns formatted strings of time stamps for HTML requests.
  
      :parameters time_range: pandas.tslib.Timestamp