1 | <?php |
||||||||||||||
2 | namespace GJClasses; |
||||||||||||||
3 | |||||||||||||||
4 | class Time |
||||||||||||||
5 | { |
||||||||||||||
6 | |||||||||||||||
7 | public function stamp() |
||||||||||||||
8 | { |
||||||||||||||
9 | return gmdate('Y-m-d H:i:s', mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y"))); |
||||||||||||||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
date('H') of type string is incompatible with the type integer expected by parameter $hour of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('i') of type string is incompatible with the type integer expected by parameter $minute of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('d') of type string is incompatible with the type integer expected by parameter $day of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('s') of type string is incompatible with the type integer expected by parameter $second of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('m') of type string is incompatible with the type integer expected by parameter $month of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||||||||||
10 | } |
||||||||||||||
11 | |||||||||||||||
12 | public function timeLong() |
||||||||||||||
13 | { |
||||||||||||||
14 | return gmdate('l, F jS', mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y"))); |
||||||||||||||
0 ignored issues
–
show
date('m') of type string is incompatible with the type integer expected by parameter $month of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('Y') of type string is incompatible with the type integer expected by parameter $year of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('i') of type string is incompatible with the type integer expected by parameter $minute of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('H') of type string is incompatible with the type integer expected by parameter $hour of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('d') of type string is incompatible with the type integer expected by parameter $day of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('s') of type string is incompatible with the type integer expected by parameter $second of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||||||||||
15 | } |
||||||||||||||
16 | |||||||||||||||
17 | public function timeBasic() |
||||||||||||||
18 | { |
||||||||||||||
19 | return gmdate("Y-m-d", mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y"))); |
||||||||||||||
0 ignored issues
–
show
date('m') of type string is incompatible with the type integer expected by parameter $month of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('Y') of type string is incompatible with the type integer expected by parameter $year of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('H') of type string is incompatible with the type integer expected by parameter $hour of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('s') of type string is incompatible with the type integer expected by parameter $second of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('d') of type string is incompatible with the type integer expected by parameter $day of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('i') of type string is incompatible with the type integer expected by parameter $minute of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||||||||||
20 | } |
||||||||||||||
21 | |||||||||||||||
22 | public function timeBasicPlusDays($days) |
||||||||||||||
23 | { |
||||||||||||||
24 | return gmdate("Y-m-d", mktime(date("H"), date("i"), date("s"), date("m"), date("d") + $days, date("Y"))); |
||||||||||||||
0 ignored issues
–
show
date('Y') of type string is incompatible with the type integer expected by parameter $year of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('m') of type string is incompatible with the type integer expected by parameter $month of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('i') of type string is incompatible with the type integer expected by parameter $minute of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('s') of type string is incompatible with the type integer expected by parameter $second of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('H') of type string is incompatible with the type integer expected by parameter $hour of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||||||||||
25 | } |
||||||||||||||
26 | |||||||||||||||
27 | public function timeBasicPlusYears($years) |
||||||||||||||
28 | { |
||||||||||||||
29 | return gmdate("Y-m-d", mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y") + $years)); |
||||||||||||||
0 ignored issues
–
show
date('s') of type string is incompatible with the type integer expected by parameter $second of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('H') of type string is incompatible with the type integer expected by parameter $hour of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('d') of type string is incompatible with the type integer expected by parameter $day of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('i') of type string is incompatible with the type integer expected by parameter $minute of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
date('m') of type string is incompatible with the type integer expected by parameter $month of mktime() .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||||||||||
30 | } |
||||||||||||||
31 | |||||||||||||||
32 | } |
||||||||||||||
33 |