This website works better with JavaScript.
Home
Explore
Help
Sign In
Laclic
/
SovBundle
Watch
3
Star
0
Fork
0
Code
Issues
1
Pull Requests
0
Releases
2
Wiki
Activity
Browse Source
DateComponent : ajout getTotalMinutes
develop
Guillaume
2 years ago
parent
1972f94a0a
commit
be3562b49d
1 changed files
with
5 additions
and
0 deletions
Unified View
Show Diff Stats
+5
-0
Component/DateComponent.php
+ 5
- 0
Component/DateComponent.php
View File
return $hour ;
return $hour ;
}
}
public function getTotalMinutes(\DateTimeInterface $time): int
{
return (int) $time->format('H') * 60 + (int) $time->format('i');
}
}
}
Write
Preview
Loading…
Cancel
Save