layout | title | published |
---|---|---|
default |
accessedbefore |
true |
[%CFEngine_function_prototype(newer,older)%]
Description: Compares the atime
fields of two files.
Return true if newer
was accessed before older
.
[%CFEngine_function_attributes(newer, older)%]
Example:
Prepare:
[%CFEngine_include_snippet(accessedbefore.cf, #+begin_src prep, .*end_src)%]
Run:
[%CFEngine_include_snippet(accessedbefore.cf, #+begin_src cfengine3, .*end_src)%]
Output:
[%CFEngine_include_snippet(accessedbefore.cf, #+begin_src\s+example_output\s*, .*end_src)%]
See also: changedbefore()
, isnewerthan()