#TimePoint and Duration in Smart contract development
11 messages · Page 1 of 1 (latest)
https://soroban.stellar.org/docs/reference/releases#breaking-changes-note
In the soroban preview 8 breaking changes note, you can see "special case u64 subtypes Timepoint and Duration"
But I have no idea in which cases it is convenient to use them...
these are currently just stubs and don't have much utility
the intent is to allow representing e.g. ledger timestamp not as just some arbitrary int, but as a time type with appropriate math/utils
but for now feel free to ignore that
Okay, thank you @balmy arch 🙆🏻♂️
At some point in a Soroban smart contract could someone specifiy that a variable is going to be TimePoint or Duration type?
I mean, are these two types going to be useful on the smart contract developer side or are they more for system use (like what you mention with the timestamp ledger)?