Changeset 1220
- Timestamp:
- 08/11/08 17:41:46 (3 months ago)
- Files:
-
- trunk/timeseries/scikits/timeseries/tdates.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/timeseries/scikits/timeseries/tdates.py
r1208 r1220 110 110 If it is currently Saturday or Sunday, then the preceding Friday will be 111 111 returned. If it is later than the specified ``day_end_hour`` and ``day_end_min``, 112 ``now('Business')`` will be returned. 112 ``now('Business')`` will be returned. 113 113 Otherwise, ``now('Business')-1`` will be returned. 114 114 … … 117 117 dateNum = tempDate.hour + float(tempDate.minute)/60 118 118 checkNum = day_end_hour + float(day_end_min)/60 119 if dateNum < checkNum :119 if dateNum < checkNum and tempDate.weekday() < 5: 120 120 return now(_c.FR_BUS) - 1 121 121 else: … … 185 185 When viewed element-wise, DateArray is a sequence of dates. 186 186 For example, a test such as : 187 187 188 188 >>> DateArray(...) = value 189 189 190 190 will be valid only if value is an integer, not a Date 191 191 However, a loop such as : 192 192 193 193 >>> for d in DateArray(...): 194 194 195 195 accesses the array element by element. Therefore, `d` is a Date object. 196 196 """ … … 411 411 def asfreq(self, freq=None, relation="END"): 412 412 """ 413 413 414 414 Converts the dates to another frequency. 415 415
