Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2815

Function to determine if a file is newer/older than timespec

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Story Points:
      3

      Description

      I would like to be able to define a class if a file is newer or older than some time specification.

      For example, if a file is older than "3 days from now", or "January 21st 2019".

      Currently we have functions that can compare files to other files. While it's possible to calculate the times I might want, and create files with those ctimes, its quite fiddly.
      See changedbefore, isnewerthan, isolderthan().

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            a10042 Nick Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: