def datetimeToString(dt):
    """ Return string representing the year, month, day, and hour of a datetime
        object.
        
        @param dt Python datetime object
        
        @return String of the form 'YYYY MM DD HH'
    """
    return '%d %d %d %d' % (dt.year, dt.month, dt.day, dt.hour)
