Address.php
5 years ago
Color.php
5 years ago
Company.php
5 years ago
DateTime.php
5 years ago
Internet.php
5 years ago
Payment.php
5 years ago
Person.php
5 years ago
PhoneNumber.php
5 years ago
Text.php
5 years ago
DateTime.php
43 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Faker\Provider\ka_GE; |
| 4 | |
| 5 | class DateTime extends \Faker\Provider\DateTime |
| 6 | { |
| 7 | |
| 8 | public static function dayOfWeek($max = 'now') |
| 9 | { |
| 10 | $map = array( |
| 11 | 'Sunday' => 'კვირა', |
| 12 | 'Monday' => 'ორშაბათი', |
| 13 | 'Tuesday' => 'სამშაბათი', |
| 14 | 'Wednesday' => 'ოთხშაბათი', |
| 15 | 'Thursday' => 'ხუთშაბათი', |
| 16 | 'Friday' => 'პარასკევი', |
| 17 | 'Saturday' => 'შაბათი', |
| 18 | ); |
| 19 | $week = static::dateTime($max)->format('l'); |
| 20 | return isset($map[$week]) ? $map[$week] : $week; |
| 21 | } |
| 22 | |
| 23 | public static function monthName($max = 'now') |
| 24 | { |
| 25 | $map = array( |
| 26 | 'January' => 'იანვარი', |
| 27 | 'February' => 'თებერვალი', |
| 28 | 'March' => 'მარტი', |
| 29 | 'April' => 'აპრილი', |
| 30 | 'May' => 'მაისი', |
| 31 | 'June' => 'ივნისი', |
| 32 | 'July' => 'ივლისი', |
| 33 | 'August' => 'აგვისტო', |
| 34 | 'September' => 'სექტემბერი', |
| 35 | 'October' => 'ოქტომბერი', |
| 36 | 'November' => 'ნოემბერი', |
| 37 | 'December' => 'დეკემბერი', |
| 38 | ); |
| 39 | $month = static::dateTime($max)->format('F'); |
| 40 | return isset($map[$month]) ? $map[$month] : $month; |
| 41 | } |
| 42 | } |
| 43 |