(off, sep=':')
| 185 | return fmt.format(hh, mm, ss, us) |
| 186 | |
| 187 | def _format_offset(off, sep=':'): |
| 188 | s = '' |
| 189 | if off is not None: |
| 190 | if off.days < 0: |
| 191 | sign = "-" |
| 192 | off = -off |
| 193 | else: |
| 194 | sign = "+" |
| 195 | hh, mm = divmod(off, timedelta(hours=1)) |
| 196 | mm, ss = divmod(mm, timedelta(minutes=1)) |
| 197 | s += "%s%02d%s%02d" % (sign, hh, sep, mm) |
| 198 | if ss or ss.microseconds: |
| 199 | s += "%s%02d" % (sep, ss.seconds) |
| 200 | |
| 201 | if ss.microseconds: |
| 202 | s += '.%06d' % ss.microseconds |
| 203 | return s |
| 204 | |
| 205 | _normalize_century = None |
| 206 | def _need_normalize_century(): |
no test coverage detected
searching dependent graphs…