From 0e77ecd3abfd115f9776a2e99ddfa3c592a1e803 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Sat, 7 Nov 2026 03:19:51 +0300 Subject: [PATCH] Fix binary additions and file age comparison in README (#7) --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d6cf248..6683753 100644 --- a/README.md +++ b/README.md @@ -67,19 +67,22 @@ The object `QQ.dt.time` has the following attributes: * `lt` if less than * `lte` if less than or equal -For example, to add five hours and thirty minutes to the current time and then compare it with the time of file creation: +For example, to check whether a file is more than five hours and thirty minutes old, +compare the current time with the file creation time plus that interval. A file +exactly five hours and thirty minutes old is still considered fresh: ``` QQ.io.stdout if. gt. + QQ.dt.now plus. - QQ.dt.now - QQ.dt.hour.mul 5 + plus. + utime. + QQ.fs.file + "test.txt" + QQ.dt.hour.mul 5 QQ.dt.minute.mul 30 - utime. - QQ.fs.file - "test.txt" "The file is too old" "The file is fresh" ```