Returns a value that can be added to a Date object.
(days=0, seconds=0, minutes=0, hours=0, **kwargs)
| 180 | return d |
| 181 | |
| 182 | def time(days=0, seconds=0, minutes=0, hours=0, **kwargs): |
| 183 | """ Returns a value that can be added to a Date object. |
| 184 | """ |
| 185 | # Other parameters: microseconds, milliseconds, weeks. |
| 186 | # There is no months-parameter since months have a variable amount of days (28-31). |
| 187 | # To increase the month of a Date: |
| 188 | # Date(date.year, date.month+1, date.day, format=date.format) |
| 189 | return timedelta(days=days, seconds=seconds, minutes=minutes, hours=hours, **kwargs) |
| 190 | |
| 191 | #### STRING FUNCTIONS ############################################################################## |
| 192 | # Latin-1 (ISO-8859-1) encoding is identical to Windows-1252 except for the code points 128-159: |
no outgoing calls
no test coverage detected
searching dependent graphs…