From d8e806aac10d18ae03da18214523257096cb01d9 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 19 Nov 2016 22:04:13 +0100 Subject: [PATCH] docs: datetime formatting examples for {now} placeholder, fixes #1822 --- docs/usage.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/usage.rst b/docs/usage.rst index 14ecfbb8b..9a0dc7108 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -382,7 +382,10 @@ Examples # Use short hostname, user name and current time in archive name $ borg create /path/to/repo::{hostname}-{user}-{now} ~ - $ borg create /path/to/repo::{hostname}-{user}-{now:%Y-%m-%d_%H:%M:%S} ~ + # Similar, use the same datetime format as borg 1.1 will have as default + $ borg create /path/to/repo::{hostname}-{user}-{now:%Y-%m-%dT%H:%M:%S} ~ + # As above, but add nanoseconds + $ borg create /path/to/repo::{hostname}-{user}-{now:%Y-%m-%dT%H:%M:%S.%f} ~ .. include:: usage/extract.rst.inc