src/DefaultClock.php
public static function travel(Instant $instant) : void
    {
        $clock = self::get();
        $offset = Duration::between($clock->getTime(), $instant);

        self::set(new OffsetClock($clock, $offset));
    }
public static function travel(Instant $instant) : void
    {
        $clock = self::get();
        $offset = Duration::between($clock->getTime(), $instant);

        self::set(new OffsetClock($clock, $offset));
    }
public static function travel ( Instant $ instant ) : void { $ clock = self :: get ( ) ; $ offset = Duration :: between ( $ clock -> getTime ( ) , $ instant ) ; self :: set ( new OffsetClock ( $ clock , $ offset ) ) ; }
Travels to a specific point in time, but allows time to continue moving forward from there.

If the current default clock is frozen, you must `reset()` it first, or the time will stay frozen.

@param Instant $instant

@return void
Travels to a specific point in time but allows time to continue moving forward from there .