massivefermion / birl

datetime handling for gleam
https://hex.pm/packages/birl
Apache License 2.0
72 stars 9 forks source link

Add helper function for determining if a Time has occured #36

Open BradBot1 opened 3 months ago

BradBot1 commented 3 months ago

This pull request adds has_occured(value: Time) -> Bool


I've added this as I find myself having to check this condition alot when dealing with JWT's or invalidation, and this shorthand removes my need for a helper function across my code. This function only calls the compare method and performs a comparison so basically no maintenence