Server IP : 23.254.227.96 / Your IP : 216.73.216.120 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/viralblo/instantblog/vendor/fakerphp/faker/src/Faker/Provider/cs_CZ/ |
Upload File : |
<?php namespace Faker\Provider\cs_CZ; /** * Czech months and days without setting locale */ class DateTime extends \Faker\Provider\DateTime { protected static $days = [ 'neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota', ]; protected static $months = [ 'leden', 'únor', 'březen', 'duben', 'květen', 'červen', 'červenec', 'srpen', 'září', 'říjen', 'listopad', 'prosinec', ]; protected static $monthsGenitive = [ 'ledna', 'února', 'března', 'dubna', 'května', 'června', 'července', 'srpna', 'září', 'října', 'listopadu', 'prosince', ]; protected static $formattedDateFormat = [ '{{dayOfMonth}}. {{monthNameGenitive}} {{year}}', ]; public static function monthName($max = 'now') { return static::$months[parent::month($max) - 1]; } public static function monthNameGenitive($max = 'now') { return static::$monthsGenitive[parent::month($max) - 1]; } public static function dayOfWeek($max = 'now') { return static::$days[static::dateTime($max)->format('w')]; } /** * @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now" * * @return string * * @example '2' */ public static function dayOfMonth($max = 'now') { return static::dateTime($max)->format('j'); } /** * Full date with inflected month * * @return string * * @example '16. listopadu 2003' */ public function formattedDate() { $format = static::randomElement(static::$formattedDateFormat); return $this->generator->parse($format); } }