summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Hommel <wolfgang.hommel@unibw.de>2019-08-20 18:07:17 +0200
committerWolfgang Hommel <wolfgang.hommel@unibw.de>2019-08-20 18:07:17 +0200
commite85863f671cfe7ae6e48eae4696b4946e5cf632e (patch)
treec4e11e803337b3a91dd76a8a7f68f068bd2c05c9
parentd5c00506844220a8cc0d709420c48d1bf1567660 (diff)
downloadlibfaketime-e85863f671cfe7ae6e48eae4696b4946e5cf632e.tar.gz
Added note regarding leap year handling in documentation (#145)
-rw-r--r--README5
1 files changed, 5 insertions, 0 deletions
diff --git a/README b/README
index fc4e57a..664f1a4 100644
--- a/README
+++ b/README
@@ -224,6 +224,11 @@ optionally followed by a multiplier:
export FAKETIME="-10m" sets the faked time 10 minutes behind the real time.
export FAKETIME="+14d" sets the faked time to 14 days in the future.
+ Please note that if you need other multipliers (weeks, months etc.) or higher
+ precision (e.g., correct leap year handling), you should use either the
+ faketime wrapper or the GNU date command as shown in the first of the three
+ examples below.
+
You now should understand the complete example we've used before:
LD_PRELOAD=/usr/local/lib/libfaketime.so.1 FAKETIME="-15d" date