. * @author ruhllatio * @copyright 2015 nZEDb */ namespace Blacklight\utility; use Illuminate\Support\Carbon; /** * Class Time -- functions for working with time string and DTOs. */ class Time { /** * For a given timestamp, calculate the localized show/episode airdate * via the provided local airing timezone. * * @param string $time * @param string $zone * * @return string */ public static function localizeAirdate($time = '', $zone = ''): string { return Carbon::parse($time, $zone)->format('Y-m-d'); } }