Get datetime by index. Parameters ---------- idx : int index of the calendar
(self, idx: int)
| 98 | self.cals = D.calendar(future=self._future, end_time=end_time) |
| 99 | |
| 100 | def get(self, idx: int): |
| 101 | """ |
| 102 | Get datetime by index. |
| 103 | |
| 104 | Parameters |
| 105 | ---------- |
| 106 | idx : int |
| 107 | index of the calendar |
| 108 | """ |
| 109 | if idx is None or idx >= len(self.cals): |
| 110 | return None |
| 111 | return self.cals[idx] |
| 112 | |
| 113 | def max(self) -> pd.Timestamp: |
| 114 | """ |
no outgoing calls
no test coverage detected