# Class: TimerHelper

## coreutils. TimerHelper

#### new TimerHelper()

  Static helper class for time based operations

### Methods

#### <static> hoursToMiliseconds(hours)

  Convert hours to miliseconds

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `hours` | number |

  ##### Returns:

  miliseconds
  Type
    number

#### <static> milisecondsToHours(miliseconds)

  Convert miliseconds to hours

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `miliseconds` | number |

  ##### Returns:

  hours
  Type
    number

#### <static> milisecondsToMinutes(miliseconds)

  Convert miliseconds to miniutes

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `miliseconds` | number |

  ##### Returns:

  miniutes
  Type
    number

#### <static> milisecondsToSeconds(miliseconds)

  Convert miliseconds to seconds

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `miliseconds` | number |

  ##### Returns:

  seconds
  Type
    number

#### <static> minutesToMiliseconds(minutes)

  Convert minutes to miliseconds

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `minutes` | number |

  ##### Returns:

  miliseconds
  Type
    number

#### <static> minutesToMiliseconds(seconds)

  Convert seconds to miliseconds

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `seconds` | number |

  ##### Returns:

  miliseconds
  Type
    number

#### <static> setIntervalInContext(delay, func, context)

  Set interval and call callabck with context

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `delay` | number | delay of interval in miliseconds
  `func` | function | callabck
  `context` | object | null | scope for callback

#### <static> setTimeoutInContext(delay, func, context)

  Set timeout and call callabck with context

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `delay` | number | delay of interval in miliseconds
  `func` | function | callabck
  `context` | object | null | scope for callback

#### Search results