Skip to main content
Version: 1.6.0

Comparing

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

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