#TimePoint and Duration in Smart contract development

11 messages · Page 1 of 1 (latest)

obtuse ibex
#

TimePoint and Duration are new ScVals introduced by the XDR Changes of the Soroban Preview 8.

But I don't know what is the utility on the side of someone developing Soroban smart contracts 🤔

Someone could give additional info or use cases, please?

obtuse ibex
#

But I have no idea in which cases it is convenient to use them...

balmy arch
#

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

obtuse ibex
#

Okay, thank you @balmy arch 🙆🏻‍♂️

obtuse ibex
#

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)?

balmy arch
#

I think it's useful for the contracts

#

but not sure what level of support will we manage to get