code: def time2dir(tstamp):
      
      result = ''
      for field in time2levels(tstamp):
          result = join(result, field)
      return result
docs: Given a :class:`datetime.datetime` object,
      return a path assembled with :func:`os.path.join`
      for the levels.