Skip to content

Commit 4eef617

Browse files
add {unixtime} placeholder, fixes borgbackup#8522
1 parent 07e0eab commit 4eef617

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/borg/helpers/parseformat.py

+1
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ def _replace_placeholders(text, overrides={}):
280280
"hostname": hostname,
281281
"now": DatetimeWrapper(current_time.astimezone()),
282282
"utcnow": DatetimeWrapper(current_time),
283+
"unixtime": int(current_time.timestamp()),
283284
"user": getosusername(),
284285
"uuid4": str(uuid.uuid4()),
285286
"borgversion": borg_version,

0 commit comments

Comments
 (0)