[seemingly solved] Getting current date and time inside a contract

Hi Friends!

In case I need to call some entry function by cron (which by now can only be driven externally as I understand), how can I get the current date and time? Is it correct that there is no provision in move standard library and I simply need to pass it as the input parameter (or use call counter inside some object instead) - or am I missing something obvious?

Thanks in advance!

3 Likes

Pass the Clock a shared object with @0x6 id, unsure if it is increment time as of 0.29.0 tho

1 Like

Wow, great! very interesting :slight_smile: shall use it - probably it is going to be externally driven (incremented) in mainnet, though perhaps not with millisecond precision (?)

Thanks a lot!

I think the validators will increment when they validate TXs

2 Likes