Package Bio :: Package EUtils :: Module Datatypes :: Class WithinNDays
[show private | hide private]
[frames | no frames]

Class WithinNDays


Restrict a search to matches in the last N days

Eg, to see what's been published in PubMed about rabies in the last 20 days.

client.search("rabies", daterange = WithinNDays(20, "pdat")
Method Summary
  __init__(self, ndays, datetype)
ndays, datetype = None...
  get_query_params(self)
returns the fields to add to the EUtils query

Method Details

__init__(self, ndays, datetype=None)
(Constructor)

ndays, datetype = None

'ndays' -- within this many days of now (the 'reldate' field
       of a search)
'datetype' -- the date field to use (defaults to Entrez date,
       which is "edat")

get_query_params(self)

returns the fields to add to the EUtils query

This is an internal implementation feature you can ignore.

Generated by Epydoc 2.1 on Thu Aug 10 20:01:08 2006 http://epydoc.sf.net