FLOIP / flow-spec

7 stars 6 forks source link

Expression Proposal: `Between` - Checks if given `date-time` is within given `starting date-time` and `ending date-time` #72

Open lakhbawa opened 1 year ago

lakhbawa commented 1 year ago

Type of Expression: Date Function Return Type: Boolean Case Sensitive: NA

Expression Example: @between(NOW(), '2024-01-20 20:22:5', '2025-01-20 20:22:5') -> FALSE # When We are in 2023 @between(NOW(), '2022-01-20 20:22:5', '2025-01-20 20:22:5') -> TRUE # When We are in 2023

Common Use Case: This expression can be used to make the block exits more dynamic by choosing the exit based on the current datetime/given datetime