src/Carbon/Traits/Date.php
public function getCalendarFormats($locale = null)
    {
        return [
            'sameDay' => $this->getTranslationMessage('calendar.sameDay', $locale, '[Today at] LT'),
            'nextDay' => $this->getTranslationMessage('calendar.nextDay', $locale, '[Tomorrow at] LT'),
            'nextWeek' => $this->getTranslationMessage('calendar.nextWeek', $locale, 'dddd [at] LT'),
            'lastDay' => $this->getTranslationMessage('calendar.lastDay', $locale, '[Yesterday at] LT'),
            'lastWeek' => $this->getTranslationMessage('calendar.lastWeek', $locale, '[Last] dddd [at] LT'),
            'sameElse' => $this->getTranslationMessage('calendar.sameElse', $locale, 'L'),
        ];
    }
public function getCalendarFormats($locale = null)
    {
        return [
            'sameDay' => $this->getTranslationMessage('calendar.sameDay', $locale, '[Today at] LT'),
            'nextDay' => $this->getTranslationMessage('calendar.nextDay', $locale, '[Tomorrow at] LT'),
            'nextWeek' => $this->getTranslationMessage('calendar.nextWeek', $locale, 'dddd [at] LT'),
            'lastDay' => $this->getTranslationMessage('calendar.lastDay', $locale, '[Yesterday at] LT'),
            'lastWeek' => $this->getTranslationMessage('calendar.lastWeek', $locale, '[Last] dddd [at] LT'),
            'sameElse' => $this->getTranslationMessage('calendar.sameElse', $locale, 'L'),
        ];
    }
public function getCalendarFormats ( $ locale = null ) { return [ 'sameDay' => $ this -> getTranslationMessage ( 'calendar.sameDay' , $ locale , '[Today at] LT' ) , 'nextDay' => $ this -> getTranslationMessage ( 'calendar.nextDay' , $ locale , '[Tomorrow at] LT' ) , 'nextWeek' => $ this -> getTranslationMessage ( 'calendar.nextWeek' , $ locale , 'dddd [at] LT' ) , 'lastDay' => $ this -> getTranslationMessage ( 'calendar.lastDay' , $ locale , '[Yesterday at] LT' ) , 'lastWeek' => $ this -> getTranslationMessage ( 'calendar.lastWeek' , $ locale , '[Last] dddd [at] LT' ) , 'sameElse' => $ this -> getTranslationMessage ( 'calendar.sameElse' , $ locale , 'L' ) , ] ; }
Returns list of calendar formats for ISO formatting.

@param string|null $locale current locale used if null

@return array
Returns list of calendar formats for ISO formatting .