Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timestamp comparison action #77

Closed
frikky opened this issue Feb 15, 2021 · 6 comments
Closed

Add timestamp comparison action #77

frikky opened this issue Feb 15, 2021 · 6 comments
Labels
General Any kind of app that doesn't fit everything else Misc Anything that doesn't fit our 8 categories Tool

Comments

@frikky
Copy link
Member

frikky commented Feb 15, 2021

Add a way of comparing strings as timestamps.

Fields:

  • Value 1
  • Comparison (larger than / equal / less than..)
  • Number (1,2,3,4)
  • Specification (seconds/minutes/hours/days etc)
  • Value 2

This wouldn't necessarily feel super good right now, but does the job for now. Should make a better "custom" GUI for it for later.

Alternative: make this possible with conditions.

@pemontto
Copy link
Contributor

Would be useful to have a current time macro/function and ability to do some date math:

  • time.now() - current local time
  • utc.now() - current UTC time
  • date math - utc.now() - date("5 hours ago")

This could be used for scheduled workflows, e.g. run every 5 hours find events updated within the last 5 hrs

@frikky
Copy link
Member Author

frikky commented Feb 26, 2021

@synack is working on this and will probably have something ready soon 🔥

@frikky frikky added the General Any kind of app that doesn't fit everything else label Feb 26, 2021
@pemontto
Copy link
Contributor

Awesome, one glaring omission from the above are of course functions to parse and format datetimes to/from strings!

@frikky frikky added Misc Anything that doesn't fit our 8 categories Tool labels Mar 16, 2021
@frikky
Copy link
Member Author

frikky commented Mar 16, 2021

Hey @pemontto any update? Could we get a pull request? ;)

@frikky
Copy link
Member Author

frikky commented Mar 16, 2021

Suggestion from @pemontto in discord - create a transformer of sorts: strftime($.alert_date, "%s")

This can be applied to a lot of things

@frikky
Copy link
Member Author

frikky commented May 29, 2021

This has been added to Shuffle Tools!

@frikky frikky closed this as completed May 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
General Any kind of app that doesn't fit everything else Misc Anything that doesn't fit our 8 categories Tool
Projects
None yet
Development

No branches or pull requests

2 participants