(obj, mapping=None)
| 117 | |
| 118 | |
| 119 | def escape_time(obj, mapping=None): |
| 120 | if obj.microsecond: |
| 121 | fmt = "'{0.hour:02}:{0.minute:02}:{0.second:02}.{0.microsecond:06}'" |
| 122 | else: |
| 123 | fmt = "'{0.hour:02}:{0.minute:02}:{0.second:02}'" |
| 124 | return fmt.format(obj) |
| 125 | |
| 126 | |
| 127 | def escape_datetime(obj, mapping=None): |
nothing calls this directly
no outgoing calls
no test coverage detected