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 comparison date function in the SC library #615

Open
samuelmanzanera opened this issue Oct 10, 2022 · 0 comments
Open

Add comparison date function in the SC library #615

samuelmanzanera opened this issue Oct 10, 2022 · 0 comments
Labels
feature New feature request good first issue Good for newcomers smart contracts Involve smart contracts

Comments

@samuelmanzanera
Copy link
Member

samuelmanzanera commented Oct 10, 2022

We should add function to compare datetime

Because this is not valid:

condition transaction: [
  timestamp: < unix_timestamp
]

we could indeed as something like:

condition transaction: [
  timestamp: Time.compare(unix_timestamp) == "lt"
  # OR
  timestamp: Time.diff(unix_timestamp) > 0
]

Epic: #608

@samuelmanzanera samuelmanzanera added feature New feature request smart contracts Involve smart contracts labels Oct 10, 2022
@samuelmanzanera samuelmanzanera added the good first issue Good for newcomers label Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request good first issue Good for newcomers smart contracts Involve smart contracts
Projects
None yet
Development

No branches or pull requests

1 participant