Lines Matching refs:date
16 >>> TODAY = date(2003, 9, 17)
26 >>> TODAY = date.today()
30 datetime.date(2003, 9, 17)
85 >>> date(2003,1,27)+relativedelta(months=+1)
86 datetime.date(2003, 2, 27)
87 >>> date(2003,1,31)+relativedelta(months=+1)
88 datetime.date(2003, 2, 28)
89 >>> date(2003,1,31)+relativedelta(months=+2)
90 datetime.date(2003, 3, 31)
96 >>> date(2000,2,28)+relativedelta(years=+1)
97 datetime.date(2001, 2, 28)
98 >>> date(2000,2,29)+relativedelta(years=+1)
99 datetime.date(2001, 2, 28)
101 >>> date(1999,2,28)+relativedelta(years=+1)
102 datetime.date(2000, 2, 28)
103 >>> date(1999,3,1)+relativedelta(years=+1)
104 datetime.date(2000, 3, 1)
106 >>> date(2001,2,28)+relativedelta(years=-1)
107 datetime.date(2000, 2, 28)
108 >>> date(2001,3,1)+relativedelta(years=-1)
109 datetime.date(2000, 3, 1)
116 datetime.date(2003, 9, 19)
119 datetime.date(2003, 9, 19)
126 datetime.date(2003, 9, 26)
133 datetime.date(2003, 9, 17)
140 datetime.date(2003, 9, 24)
156 >>> relativedelta(NOW, date(2001,1,1))
177 Obtain today's date using the yearday:
181 >>> date(2003, 1, 1)+relativedelta(yearday=260)
182 datetime.date(2003, 9, 17)
184 We can use today's date, since yearday should be absolute
190 datetime.date(2003, 9, 17)
196 >>> date(2002, 1, 1)+relativedelta(yearday=260)
197 datetime.date(2002, 9, 17)
203 >>> date(2000, 1, 1)+relativedelta(yearday=260)
204 datetime.date(2000, 9, 16)
210 >>> date(2000, 1, 1)+relativedelta(nlyearday=260)
211 datetime.date(2000, 9, 17)