1Legacy classifier identifies BSD-3-Clause-Attribution 2EXPECTED:BSD-3-Clause,Copyright 3"""DatetimeIndex analog for cftime.datetime objects""" 4# The pandas.Index subclass defined here was copied and adapted for 5# use with cftime.datetime objects based on the source code defining 6# pandas.DatetimeIndex. 7 8# For reference, here is a copy of the pandas copyright notice: 9 10# (c) 2011-2012, Lambda Foundry, Inc. and PyData Development Team 11# All rights reserved. 12 13# Copyright (c) 2008-2011 AQR Capital Management, LLC 14# All rights reserved. 15 16# Redistribution and use in source and binary forms, with or without 17# modification, are permitted provided that the following conditions are 18# met: 19 20# * Redistributions of source code must retain the above copyright 21# notice, this list of conditions and the following disclaimer. 22 23# * Redistributions in binary form must reproduce the above 24# copyright notice, this list of conditions and the following 25# disclaimer in the documentation and/or other materials provided 26# with the distribution. 27 28# * Neither the name of the copyright holder nor the names of any 29# contributors may be used to endorse or promote products derived 30# from this software without specific prior written permission. 31 32# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS 33# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 34# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 35# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 36# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 38# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 39# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 40# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 41# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 42# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 43