Skip to content

Conversation

dannyvassallo
Copy link
Contributor

Issue #, if available:

#521

Description of changes:

Introduces 2 date functions to Guard:

  1. parse_epoch parses dates from templates into Unix timestamps.
  2. now returns the current Unix timestamp.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@justinmburrous
Copy link

@dannyvassallo Yes this looks exactly like what we were looking for. Sorry for the delay here.

Copy link

@justinmburrous justinmburrous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes seem to be what we are looking for for timestamp parsing.

@dannyvassallo dannyvassallo merged commit 959e6c0 into aws-cloudformation:main Oct 8, 2024
18 checks passed
@dannyvassallo dannyvassallo deleted the date_functions branch October 8, 2024 14:33
joshfried-aws pushed a commit to joshfried-aws/cloudformation-guard that referenced this pull request Nov 22, 2024
…ormation#561)

* feat(cfn-guard): Initial implementation of date functions

* feat(cfn-guard): use serde_json in test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants