浏览代码

docs: datetime formatting examples for {now} placeholder, fixes #1822

Thomas Waldmann 8 年之前
父节点
当前提交
d8e806aac1
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      docs/usage.rst

+ 4 - 1
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