MCPcopy Index your code
hub / github.com/borgbackup/borg / DatetimeWrapper

Class DatetimeWrapper

src/borg/helpers/parseformat.py:329–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327
328
329class DatetimeWrapper:
330 def __init__(self, dt):
331 self.dt = dt
332
333 def __format__(self, format_spec):
334 if format_spec == "":
335 format_spec = ISO_FORMAT_NO_USECS
336 return self.dt.__format__(format_spec)
337
338
339class PlaceholderError(Error):

Callers 3

_replace_placeholdersFunction · 0.85
with_timestampMethod · 0.85
parse_argsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected