Skip to content
This repository was archived by the owner on Nov 7, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```
Expand Down