• Discover
  • Developers
  • Aragon Developer Portal
  • Project
  • Network
← Back to home
  • menu

    home-COMMON

    menu

    ACL

    • ACL
    • ACLSyntaxSugar
    • ACLHelpers
    • IACL
    • IACLOracle

    APM

    • APMNamehash
    • APMRegistry
    • APMInternalAppNames
    • Repo

    APPS

    • AppProxyBase
    • AppProxyPinned
    • AppProxyUpgradeable
    • AppStorage
    • AragonApp
    • UnsafeAragonApp

    COMMON

    • Autopetrified
    • ConversionHelpers
    • DelegateProxy
    • DepositableDelegateProxy
    • DepositableStorage
    • EtherTokenConstant
    • IForwarder
    • IForwarderFee
    • IVaultRecoverable
    • Initializable
    • IsContract
    • Petrifiable
    • ReentrancyGuard
    • SafeERC20
    • TimeHelpers
    • Uint256Helpers
    • UnstructuredStorage
    • VaultRecoverable

    ENS

    • ENSConstants
    • ENSSubdomainRegistrar

    EVMSCRIPT

    • EVMScriptRegistry
    • EVMScriptRunner
    • IEVMScriptExecutor
    • IEVMScriptRegistry
    • EVMScriptRegistryConstants
    • ScriptHelpers

    EVMSCRIPT / EXECUTORS

    • BaseEVMScriptExecutor
    • CallsScript

    FACTORY

    • APMRegistryFactory
    • AppProxyFactory
    • DAOFactory
    • ENSFactory
    • EVMScriptRegistryFactory

    KERNEL

    • IKernel
    • IKernelEvents
    • Kernel
    • KernelAppIds
    • KernelNamespaceConstants
    • KernelProxy
    • KernelStorage
    Edit

    TimeHelpers

    contract TimeHelpers

    Source: contracts/common/TimeHelpers.sol

    Index

    • getBlockNumber
    • getBlockNumber64
    • getTimestamp
    • getTimestamp64

    Reference

    Functions

    • getBlockNumber

      function getBlockNumber() internal view returns (uint256)

      Returns the current block number. Using a function rather than `block.number` allows us to easily mock the block number in tests.

      Returns:
      uint256
    • getBlockNumber64

      function getBlockNumber64() internal view returns (uint64)

      Returns the current block number, converted to uint64. Using a function rather than `block.number` allows us to easily mock the block number in tests.

      Returns:
      uint64
    • getTimestamp

      function getTimestamp() internal view returns (uint256)

      Returns the current timestamp. Using a function rather than `block.timestamp` allows us to easily mock it in tests.

      Returns:
      uint256
    • getTimestamp64

      function getTimestamp64() internal view returns (uint64)

      Returns the current timestamp, converted to uint64. Using a function rather than `block.timestamp` allows us to easily mock it in tests.

      Returns:
      uint64
    ← SafeERC20Uint256Helpers →
    HomeDiscoverProjectNetwork
    DevelopersBug bountyGrantsGovernance
    ContributeBlogWikiAraCon

    Be part of the conversation

    Subscribe to our newsletter