Bitrix API

DurationManager

Table of Contents

Methods

__construct()  : mixed
areDurationsEqual()  : bool
getDuration()  : int
returns difference between start and end (in seconds)
getFormattedDuration()  : string
Example: "1 day 8 hours 13 minutes"
isPositiveDuration()  : bool
returns true if duration is longer than 1 minute, false otherwise

Methods

getDuration()

returns difference between start and end (in seconds)

public getDuration() : int
Return values
int

getFormattedDuration()

Example: "1 day 8 hours 13 minutes"

public getFormattedDuration() : string
Return values
string

isPositiveDuration()

returns true if duration is longer than 1 minute, false otherwise

public isPositiveDuration() : bool
Return values
bool

        
On this page

Search results