²ιΏ΄/±ΰΌ ΄ϊΒλ
ΔΪΘέ
<?php namespace Faker\Provider\zh_CN; class DateTime extends \Faker\Provider\DateTime { public static function amPm($max = 'now') { return static::dateTime($max)->format('a') === 'am' ? 'δΈε' : 'δΈε'; } public static function dayOfWeek($max = 'now') { $map = [ 'Sunday' => 'ζζζ₯', 'Monday' => 'ζζδΈ', 'Tuesday' => 'ζζδΊ', 'Wednesday' => 'ζζδΈ', 'Thursday' => 'ζζε', 'Friday' => 'ζζδΊ', 'Saturday' => 'ζζε ', ]; $week = static::dateTime($max)->format('l'); return $map[$week] ?? $week; } public static function monthName($max = 'now') { $map = [ 'January' => 'δΈζ', 'February' => 'δΊζ', 'March' => 'δΈζ', 'April' => 'εζ', 'May' => 'δΊζ', 'June' => 'ε ζ', 'July' => 'δΈζ', 'August' => 'ε «ζ', 'September' => 'δΉζ', 'October' => 'εζ', 'November' => 'εδΈζ', 'December' => 'εδΊζ', ]; $month = static::dateTime($max)->format('F'); return $map[$month] ?? $month; } }