[BangPypers] date range

Kenneth Gonsalves lawgon at au-kbc.org
Tue Feb 9 12:33:11 CET 2010


On Tuesday 09 Feb 2010 4:47:08 pm Shekhar wrote:
> > On Tuesday 09 Feb 2010 4:18:02 pm Rory Hart wrote:
> >   
> >
> >> if startdate < date and date < enddate:
> >>
> >>     print "date in range"
> >>
> >>     
> 
> more compact
> is_in_range = startdate < date < enddate
> 

if stardate<=date<=enddate:
    print 'success'
-- 
regards
Kenneth Gonsalves
Senior Project Officer
NRC-FOSS
http://nrcfosshelpline.in/web/


More information about the BangPypers mailing list