Skip to main content
Version: 1.5.0

Comparing

You can compare timestamps using the same comparison operators applying to numerical value.

const today: timestamp = Tezos.get_now();
const one_day: int = 86400;
const in_24_hrs: timestamp = today - one_day;
const not_tomorrow: bool = (Tezos.get_now() == in_24_hrs);