File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/fakerphp/faker/src/Faker/Provider/tr_TR
Upload
[..]
Address.php (3.63 KB)
Edit
Rename
Del
Color.php (3.7 KB)
Edit
Rename
Del
Company.php (6.74 KB)
Edit
Rename
Del
DateTime.php (1.23 KB)
Edit
Rename
Del
Internet.php (372 B)
Edit
Rename
Del
Payment.php (682 B)
Edit
Rename
Del
Person.php (6.38 KB)
Edit
Rename
Del
PhoneNumber.php (4.57 KB)
Edit
Rename
Del
Edit: DateTime.php
<?php namespace Faker\Provider\tr_TR; class DateTime extends \Faker\Provider\DateTime { public static function amPm($max = 'now') { return static::dateTime($max)->format('a') === 'am' ? 'öö' : 'ös'; } public static function dayOfWeek($max = 'now') { $map = [ 'Sunday' => 'Pazar', 'Monday' => 'Pazartesi', 'Tuesday' => 'Salı', 'Wednesday' => 'Çarşamba', 'Thursday' => 'Perşembe', 'Friday' => 'Cuma', 'Saturday' => 'Cumartesi', ]; $week = static::dateTime($max)->format('l'); return $map[$week] ?? $week; } public static function monthName($max = 'now') { $map = [ 'January' => 'Ocak', 'February' => 'Şubat', 'March' => 'Mart', 'April' => 'Nisan', 'May' => 'Mayıs', 'June' => 'Haziran', 'July' => 'Temmuz', 'August' => 'Ağustos', 'September' => 'Eylül', 'October' => 'Ekim', 'November' => 'Kasım', 'December' => 'Aralık', ]; $month = static::dateTime($max)->format('F'); return $map[$month] ?? $month; } }
Simpan