src/snac/data/SNACDate.php
/**
     * Parse a date for BC
     *
     * Parse the given standard date string and determine if the date is BC and strip the date out if possible.
     *
     * @param string $standardDate The standard date
     * @return [boolean, string] Whether is BC or not and the standard date without negative.
     */
Parse a date for BC
Parse the given standard date string and determine if the date is BC and strip the date out if possible.

@param string $standardDate The standard date
@return [boolean, string] Whether is BC or not and the standard date without negative.
Parse a date for BC Parse the given standard date string and determine if the date is BC and strip the date out if possible . @param string $standardDate The standard date @return [ boolean string ] Whether is BC or not and the standard date without negative .
public function parseBC($standardDate) {
        $tmp = $standardDate;
        $isBC = false;
        if (mb_substr($standardDate, 0, 1) == "-") {
            $isBC = true;
            $tmp = mb_substr($standardDate, 1);
        }
        return array (
                $isBC,
                $tmp
        );
    }
public function parseBC ( $ standardDate ) { $ tmp = $ standardDate ; $ isBC = false ; if ( mb_substr ( $ standardDate , 0 , 1 ) == " - " ) { $ isBC = true ; $ tmp = mb_substr ( $ standardDate , 1 ) ; } return array ( $ isBC , $ tmp ) ; }
Parse a date for BC
 Parse the given standard date string and determine if the date is BC and strip the date out if possible.
Parse a date for BC Parse the given standard date string and determine if the date is BC and strip the date out if possible .
// If the standardDate starts with a minus sign, it is BC