CellModules
TimeConvert Namespace Reference

Functions

static double sToMn (double s)
 Converts seconds to minutes. More...
 
static double sToH (double s)
 Converts seconds to hours. More...
 
static double mnToS (double mn)
 Converts minutes to seconds. More...
 
static double mnToH (double mn)
 Converts minutes to hours. More...
 
static double hToS (double h)
 Converts hours to seconds. More...
 
static double hToMn (double h)
 Converts hours to minutes. More...
 

Variables

static const double mnInS = 60.
 Number of seconds in a minute. More...
 
static const double hInS = 3600.
 Number of seconds in an hour. More...
 
static const double hInMn = 60.
 Number of minutes in an hour. More...
 

Function Documentation

◆ hToMn()

static double TimeConvert::hToMn ( double  h)
inlinestatic

Converts hours to minutes.

Parameters
hThe number of hours.
Returns
The equivalent number of minutes.

Definition at line 72 of file TimeConvert.hpp.

◆ hToS()

static double TimeConvert::hToS ( double  h)
inlinestatic

Converts hours to seconds.

Parameters
hThe number of hours.
Returns
The equivalent number of seconds.

Definition at line 64 of file TimeConvert.hpp.

◆ mnToH()

static double TimeConvert::mnToH ( double  mn)
inlinestatic

Converts minutes to hours.

Parameters
mnThe number of minutes.
Returns
The equivalent number of hours.

Definition at line 56 of file TimeConvert.hpp.

◆ mnToS()

static double TimeConvert::mnToS ( double  mn)
inlinestatic

Converts minutes to seconds.

Parameters
mnThe number of minutes.
Returns
The equivalent number of seconds.

Definition at line 48 of file TimeConvert.hpp.

◆ sToH()

static double TimeConvert::sToH ( double  s)
inlinestatic

Converts seconds to hours.

Parameters
sThe number of seconds.
Returns
The equivalent number of hours.

Definition at line 40 of file TimeConvert.hpp.

◆ sToMn()

static double TimeConvert::sToMn ( double  s)
inlinestatic

Converts seconds to minutes.

Parameters
sThe number of seconds.
Returns
The equivalent number of minutes.

Definition at line 32 of file TimeConvert.hpp.

Variable Documentation

◆ hInMn

const double TimeConvert::hInMn = 60.
static

Number of minutes in an hour.

Definition at line 24 of file TimeConvert.hpp.

◆ hInS

const double TimeConvert::hInS = 3600.
static

Number of seconds in an hour.

Definition at line 19 of file TimeConvert.hpp.

◆ mnInS

const double TimeConvert::mnInS = 60.
static

Number of seconds in a minute.

Definition at line 14 of file TimeConvert.hpp.