src/includes/classes/Core/Utils/WsVersion.php
public function time(string $version): int
    {
        if (!$version) {
            return 0; // Not possible.
        } elseif (!$this->isValid($version)) {
            return 0; // Invalid version.
        }
        $Y = substr(date('Y'), 0, 2).substr($version, 0, 2);
        $m = substr($version, 2, 2); // Month.
        $d = substr($version, 4, 2); // Day.

        $time = strtotime($Y.'-'.$m.'-'.$d.' 12:00 am');

        if (preg_match('/^[0-9]{6}\.([0-9]+)/u', $version, $_m)) {
            $time += $_m[1]; // Seconds into current day.
        } // unset($_m); // Housekeeping.

        return $time;
    }
public function time(string $version): int
    {
        if (!$version) {
            return 0; // Not possible.
        } elseif (!$this->isValid($version)) {
            return 0; // Invalid version.
        }
        $Y = substr(date('Y'), 0, 2).substr($version, 0, 2);
        $m = substr($version, 2, 2); // Month.
        $d = substr($version, 4, 2); // Day.

        $time = strtotime($Y.'-'.$m.'-'.$d.' 12:00 am');

        if (preg_match('/^[0-9]{6}\.([0-9]+)/u', $version, $_m)) {
            $time += $_m[1]; // Seconds into current day.
        } // unset($_m); // Housekeeping.

        return $time;
    }
WS version to time.

@since 150424 Initial release.

@param string $version Input version.

@return int Timestamp, else `0` on failure.