Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stud-symfa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Александр Плохих
stud-symfa
Merge requests
!17
Ptps|function 7
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Ptps|function 7
PTPS|Function_7
into
main
Overview
2
Commits
3
Pipelines
0
Changes
3
2 unresolved threads
Hide all comments
Merged
Александр Плохих
requested to merge
PTPS|Function_7
into
main
11 months ago
Overview
2
Commits
3
Pipelines
0
Changes
3
2 unresolved threads
Hide all comments
Expand
0
0
Merge request reports
Compare
main
version 4
3359fa0f
11 months ago
version 3
4d8e2b2c
11 months ago
version 2
c593326a
11 months ago
version 1
c593326a
11 months ago
main (base)
and
latest version
latest version
8c2f59a9
3 commits,
11 months ago
version 4
3359fa0f
2 commits,
11 months ago
version 3
4d8e2b2c
1 commit,
11 months ago
version 2
c593326a
3 commits,
11 months ago
version 1
c593326a
2 commits,
11 months ago
3 files
+
32
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
public/public/Actions/DiffDaysAction.php
0 → 100644
+
21
−
0
Options
<?php
namespace
App\Actions
;
use
DateTimeImmutable
;
class
DiffDaysAction
{
/**
* Вернет кол-во дней между датами
* @param DateTimeImmutable $dateStart дата начала
* @param DateTimeImmutable $dateEnd дата окончания
* @return int
* */
public
static
function
count
(
DateTimeImmutable
$dateStart
,
DateTimeImmutable
$dateEnd
):
int
{
return
(
int
)
$dateStart
->
diff
(
$dateEnd
)
->
format
(
'%a'
);
}
}
Loading