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 BeforeOrOn and OnOrAfter util functions #644

Merged
merged 1 commit into from
Nov 13, 2021
Merged

Add BeforeOrOn and OnOrAfter util functions #644

merged 1 commit into from
Nov 13, 2021

Conversation

christopher-henderson
Copy link
Member

The standard library does not offer functions such as these and reading...

!c.NotBefore.Before(date) -> On or after
!c.NotBefore.After(date) -> Before or on

...is difficult to keep in your head straight while also comparing it with source requirements.

While I was grepping around for .After calls I also found some opportunities for datetime cleanups.

Copy link
Contributor

@sleevi sleevi left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me! I'll see if @cpu wants to comment :)

mtgag pushed a commit to mtgag/zlint that referenced this pull request Nov 1, 2021
@zakird zakird merged commit 2ff2130 into master Nov 13, 2021
@zakird zakird deleted the dateutils branch November 13, 2021 17:49
christopher-henderson added a commit that referenced this pull request Jun 13, 2022
… BR) (#643)

* lint about the encoding of qcstatements for PSD2

* Revert "lint about the encoding of qcstatements for PSD2"

This reverts commit 6c23670.

* util: gtld_map autopull updates for 2021-10-21T07:25:20 UTC

* added lint for presence of OU in subject

* Update v3/lints/cabf_br/lint_subject_contains_organizational_unit_name.go

Co-authored-by: Ryan Sleevi <ryan.sleevi@gmail.com>

* separated lints to adress two requirements

* separated lints to adress two requirements

* reverted change proposed by IDE

* aligning to #644

* Update v3/util/time.go

* Update v3/util/time.go

* Update v3/util/time.go

* addressed requested changes, removing lint that is implemented in 675

Co-authored-by: mtg <git@mtg.de>
Co-authored-by: GitHub <noreply@github.com>
Co-authored-by: Ryan Sleevi <ryan.sleevi@gmail.com>
Co-authored-by: Christopher Henderson <chris@chenderson.org>
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.

3 participants