throw new \
InvalidArgumentException('The given UUID date cannot be earlier than 1582-10-15.'
);
} return str_pad(dechex(self::TIME_OFFSET_INT +
$time), 16, '0', \STR_PAD_LEFT
);
} $time =
$time->
format('Uu0'
);
$negative = '-' ===
$time[0
];
if ($negative && self::TIME_OFFSET_INT <
$time =
substr($time, 1
)) { throw new \
InvalidArgumentException('The given UUID date cannot be earlier than 1582-10-15.'
);
} $time = self::
fromBase($time, self::BASE10
);
$time =
str_pad($time, 8, "\0", \STR_PAD_LEFT
);
if ($negative) { $time = self::
add($time, self::TIME_OFFSET_COM1
) ^ "\xff\xff\xff\xff\xff\xff\xff\xff";
} else { $time = self::
add($time, self::TIME_OFFSET_BIN
);
} return bin2hex($time);
}}