PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / 2.8.6
Kubio AI Page Builder v2.8.6
2.9.0 2.8.6 2.8.5 2.8.4 2.8.3 2.8.2 2.8.1 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.9.0 2.0.0 2.1.1 2.1.2 2.1.3 2.2.0 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.4.3 2.4.5 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.6.2 2.6.3 2.6.5 2.6.6 2.6.7 2.7.0 2.7.1 2.7.2 2.7.3 2.8.0
kubio / vendor / fzaninotto / faker / src / Faker / Provider / cs_CZ / DateTime.php
kubio / vendor / fzaninotto / faker / src / Faker / Provider / cs_CZ Last commit date
Address.php 1 year ago Company.php 1 year ago DateTime.php 1 year ago Internet.php 1 year ago Payment.php 1 year ago Person.php 1 year ago PhoneNumber.php 1 year ago Text.php 1 year ago
DateTime.php
62 lines
1 <?php
2
3 namespace Faker\Provider\cs_CZ;
4
5 /**
6 * Czech months and days without setting locale
7 */
8 class DateTime extends \Faker\Provider\DateTime
9 {
10 protected static $days = array(
11 'neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'
12 );
13 protected static $months = array(
14 'leden', 'únor', 'březen', 'duben', 'květen', 'červen', 'červenec',
15 'srpen', 'září', 'říjen', 'listopad', 'prosinec'
16 );
17 protected static $monthsGenitive = array(
18 'ledna', 'února', 'března', 'dubna', 'května', 'června', 'července',
19 'srpna', 'září', 'října', 'listopadu', 'prosince'
20 );
21 protected static $formattedDateFormat = array(
22 '{{dayOfMonth}}. {{monthNameGenitive}} {{year}}',
23 );
24
25 public static function monthName($max = 'now')
26 {
27 return static::$months[parent::month($max) - 1];
28 }
29
30 public static function monthNameGenitive($max = 'now')
31 {
32 return static::$monthsGenitive[parent::month($max) - 1];
33 }
34
35 public static function dayOfWeek($max = 'now')
36 {
37 return static::$days[static::dateTime($max)->format('w')];
38 }
39
40 /**
41 * @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now"
42 * @return string
43 * @example '2'
44 */
45 public static function dayOfMonth($max = 'now')
46 {
47 return static::dateTime($max)->format('j');
48 }
49
50 /**
51 * Full date with inflected month
52 * @return string
53 * @example '16. listopadu 2003'
54 */
55 public function formattedDate()
56 {
57 $format = static::randomElement(static::$formattedDateFormat);
58
59 return $this->generator->parse($format);
60 }
61 }
62