def METHOD_NAME():
    """
    Tests time search object.
    Time stamps are deduced from NCOM output files.
    .. note::
        The following NCOM output files must be present:
        ./forcings/ncom/2006/s3d/s3d.glb8_2f_2006050100.nc
        ./forcings/ncom/2006/s3d/s3d.glb8_2f_2006050200.nc
    """
    # test time search
    sim_tz = timezone.FixedTimeZone(-8, 'PST')
    init_date = datetime.datetime(2006, 5, 1, tzinfo=sim_tz)
    pattern = 'forcings/ncom/{year:04d}/s3d/s3d.glb8_2f_{year:04d}{month:02d}{day:02d}00.nc'
    timesearch_obj = interpolation.DailyFileTimeSearch(pattern, init_date, verbose=True)
    sim_time = 100.0
    fn, itime, time = timesearch_obj.find(sim_time, previous=True)
    assert fn == 'forcings/ncom/2006/s3d/s3d.glb8_2f_2006043000.nc'
    assert itime == 0
    assert time == -72000.0
    fn, itime, time = timesearch_obj.find(sim_time)
    assert fn == 'forcings/ncom/2006/s3d/s3d.glb8_2f_2006050100.nc'
    assert itime == 0
    assert time == 14400.0
    dt = 3*3600.
    for i in range(8):
        d = init_date + datetime.timedelta(seconds=i*dt)
        print('Time step {:}, {:}'.format(i, d))
        fn, itime, time = timesearch_obj.find(i*dt, previous=True)
        print('  prev: {:} {:}'.format(fn, itime))
        fn, itime, time = timesearch_obj.find(i*dt, previous=False)
        print('  next: {:} {:}'.format(fn, itime))