Skip to main content
4 votes
Accepted

Time in Milliseconds

From Dan Larimer himself when you asked in the EOS Developer telegram current_time() returns time in microseconds (rounded to block time)
John Williamson's user avatar
2 votes

How to print the real time is EOS contract?

In EOS contract library, it supports the now() and current_time()method to get the current time, but it only represent the block time and won't be changed during the execution. Yes, because contracts ...
confused00's user avatar
  • 5,554
2 votes

How does one print an iso timestamp in a smart contract

eosio.cdt doesn't support time library in its libc, so you cannot use time related functions. eoscc, a customized version of eosio.cdt, supports it. (I'm a writer of that) You can check it from here. ...
conr2d's user avatar
  • 2,320
2 votes
Accepted

how do i use current_time_point() to store date in eos table

eosiolib/* headers are deprecated and will be removed in eosio.cdt v1.7.x. Use eosio/* instead. #include <eosio/system.hpp> time_point_sec current_time_point_sec() { return time_point_sec(...
conr2d's user avatar
  • 2,320
1 vote

Time dependent EOS unit test

You can use timestamp to have this functionality. You can use now() this function will return you current timestamp(in seconds),you can set your own timestamp with help of this function Let say for ...
Mr.Y's user avatar
  • 957
1 vote

How to add "time lock" to the EOS tokens

How about this ? /// @abi action void transfer( account_name from, account_name to, asset quantity, string memo ); ///@abi action ...
leettamna's user avatar
  • 102
1 vote

What would happen when a transaction fails because "took too long"?

The failed transaction will not be attempted again automatically. If you're the dApp owner, you should increase the CPU resources or wait for them to replete and try again. Or better yet, redesign ...
Ami Heines's user avatar
  • 1,686
1 vote
Accepted

How do dApp developers manage the end-user max transaction time with the following 3 unpredictable factors?

dApp developers don't really need to manage max-transaction-time. This is not the way to plan your dApp. Your share of CPU is determined by your share of the EOS tokens you delegate towards CPU as a ...
Ami Heines's user avatar
  • 1,686

Only top scored, non community-wiki answers of a minimum length are eligible