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

Method with_timestamp

src/borg/helpers/parseformat.py:716–724  ·  view source on GitHub ↗
(self, timestamp)

Source from the content-addressed store, hash-verified

714 raise NotImplementedError(self.proto)
715
716 def with_timestamp(self, timestamp):
717 # note: this only affects the repository URL/path, not the archive name!
718 return Location(
719 self.raw,
720 overrides={
721 "now": DatetimeWrapper(timestamp),
722 "utcnow": DatetimeWrapper(timestamp.astimezone(timezone.utc)),
723 },
724 )
725
726
727def location_validator(proto=None, other=False):

Callers 1

parse_argsMethod · 0.80

Calls 2

LocationClass · 0.85
DatetimeWrapperClass · 0.85

Tested by

no test coverage detected