MathHelper
in package
Table of Contents
Methods
- CalculateWorktime() : float
- Calculates the real worktime between two times
- CalculateWorktimeWithPause() : float
- Calculates the real worktime between two times and substracts the pausetime
- DistanceBetween() : mixed
- Calculates the distance between two coordinates in meters
- TimeRound() : mixed
- TimeRoundDecimal() : mixed
Methods
CalculateWorktime()
Calculates the real worktime between two times
public
static CalculateWorktime(mixed $start_time_o, mixed $end_time_o) : float
Parameters
- $start_time_o : mixed
- $end_time_o : mixed
Return values
floatCalculateWorktimeWithPause()
Calculates the real worktime between two times and substracts the pausetime
public
static CalculateWorktimeWithPause(mixed $start_time_o, mixed $end_time_o, mixed $pauseTime) : float
Parameters
- $start_time_o : mixed
- $end_time_o : mixed
- $pauseTime : mixed
Return values
floatDistanceBetween()
Calculates the distance between two coordinates in meters
public
static DistanceBetween(mixed $latitudeFrom, mixed $longitudeFrom, mixed $latitudeTo, mixed $longitudeTo[, mixed $earthRadius = 6371000 ]) : mixed
Parameters
- $latitudeFrom : mixed
- $longitudeFrom : mixed
- $latitudeTo : mixed
- $longitudeTo : mixed
- $earthRadius : mixed = 6371000
TimeRound()
public
static TimeRound(mixed $time[, int|null $precision = null ][, int|null $roundMethod = null ]) : mixed
Parameters
- $time : mixed
- $precision : int|null = null
- $roundMethod : int|null = null
TimeRoundDecimal()
public
static TimeRoundDecimal(mixed $decimalTime[, int|null $precision = null ][, int|null $roundMethod = null ][, bool $isTimeInMinutes = false ][, bool $isTimeInHours = false ]) : mixed
Parameters
- $decimalTime : mixed
- $precision : int|null = null
- $roundMethod : int|null = null
- $isTimeInMinutes : bool = false
- $isTimeInHours : bool = false