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

Class WithinNDays

source code

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")

Instance Methods [hide private]
 
__init__(self, ndays, datetype=None)
ndays, datetype = None
source code
 
get_query_params(self)
returns the fields to add to the EUtils query
source code
Method Details [hide private]

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

source code 
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)

source code 

returns the fields to add to the EUtils query

This is an internal implementation feature you can ignore.