BeforeRelativeDate

Checks the given datetime has occured before the provided relative time.

python · Filters And Transformers

Details

IDBeforeRelativeDate
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10404775
Tagsdate filter Condition

README

Checks the given datetime has occurred before the provided relative time.

Script Data


Name Description
Script Type python3
Tags date, filter, Condition
Cortex XSOAR Version 5.0.0

Inputs


Argument Name Description
left Date value to check - Can be any time format. ex. “2020-01-01T00:00:00”
right Relative time ex. “6 months ago”

Outputs


The script returns a boolean value (true or false) indicating if the date is before the relative time.

args:
- description: Date value to check - Can be any time format. ex. "2020-01-01T00:00:00".
  name: left
  required: true
- description: Relative time ex. "6 months ago".
  name: right
  required: true
comment: Checks the given datetime has occured before the provided relative time.
commonfields:
  id: BeforeRelativeDate
  version: -1
enabled: true
name: BeforeRelativeDate
script: '-'
subtype: python3
tags:
- date
- filter
- Condition
timeout: '0'
isllm: false
type: python
dockerimage: demisto/python3:3.12.13.10404775
runas: DBotWeakRole
fromversion: 5.0.0
tests:
- No tests (unit test)