    

 ## On this page

  

 

 # OpenTD.Dimension.Time Class Reference

 Last update: 16.07.2025 

Inheritance diagram for OpenTD.Dimension.Time:

 ![](/sites/default/files/migrate-content/opentd_net4_reference_2025_r2_1/class_open_t_d_1_1_dimension_1_1_time.png)



## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

double [ConvertFromSI](#a762c1cd23575637ab1cac00a440b83a5) (double x, [UnitsData](class_open_t_d_1_1_units_data.xhtml) units) Converts x from SI to input units.   
 double [ConvertToSI](#a59d24ad4e1c8b466fc36dc79255efbd2) ([UnitsData](class_open_t_d_1_1_units_data.xhtml) units, double x) Converts x from input units to SI.   
 string [GetName](#adfac91fe3bdbb96ce30c4cbb364e976c) () Gets the name of the dimension, e.g., "Density".   
 string [GetUnitsName](#aea85d49c038c83ebad68ce386c0a73db) ([UnitsData](class_open_t_d_1_1_units_data.xhtml) units) Gets the name of unit corresponding to this dimension, e.g. "kg/m3".   
 string [GetTitle](#afcdafe7d2c696164306e69719a1344a2) ([UnitsData](class_open_t_d_1_1_units_data.xhtml) units) Gets the name of the dimension and the unit, e.g., "Density (kg/m3)".   
## Member Function Documentation

<a id="a762c1cd23575637ab1cac00a440b83a5" name="a762c1cd23575637ab1cac00a440b83a5"></a>## [◆ ](#a762c1cd23575637ab1cac00a440b83a5)ConvertFromSI()

 double OpenTD.Dimension.Time.ConvertFromSI  ( double *x*,    [UnitsData](class_open_t_d_1_1_units_data.xhtml) *units* )  inline 

Converts x from SI to input units.

Implements [OpenTD.Dimension.IDimension](interface_open_t_d_1_1_dimension_1_1_i_dimension.xhtml#afddcd70691fedb7f5e45b35ab591c2a5).





<a id="a59d24ad4e1c8b466fc36dc79255efbd2" name="a59d24ad4e1c8b466fc36dc79255efbd2"></a>## [◆ ](#a59d24ad4e1c8b466fc36dc79255efbd2)ConvertToSI()

 double OpenTD.Dimension.Time.ConvertToSI  ( [UnitsData](class_open_t_d_1_1_units_data.xhtml) *units*,    double *x* )  inline 

Converts x from input units to SI.

Implements [OpenTD.Dimension.IDimension](interface_open_t_d_1_1_dimension_1_1_i_dimension.xhtml#a47ad8f3b8708cb63cb89777b06affd5f).





<a id="adfac91fe3bdbb96ce30c4cbb364e976c" name="adfac91fe3bdbb96ce30c4cbb364e976c"></a>## [◆ ](#adfac91fe3bdbb96ce30c4cbb364e976c)GetName()

 string OpenTD.Dimension.Time.GetName  ( )   inline 

Gets the name of the dimension, e.g., "Density".

ReturnsSystem.String.Implements [OpenTD.Dimension.IDimension](interface_open_t_d_1_1_dimension_1_1_i_dimension.xhtml#aeeb6edfa19e874001b5453f595995383).





<a id="afcdafe7d2c696164306e69719a1344a2" name="afcdafe7d2c696164306e69719a1344a2"></a>## [◆ ](#afcdafe7d2c696164306e69719a1344a2)GetTitle()

 string OpenTD.Dimension.Time.GetTitle  ( [UnitsData](class_open_t_d_1_1_units_data.xhtml) *units*)   inline 

Gets the name of the dimension and the unit, e.g., "Density (kg/m3)".

Parameters unitsThe units.ReturnsSystem.String.Implements [OpenTD.Dimension.IDimension](interface_open_t_d_1_1_dimension_1_1_i_dimension.xhtml#a216ec184b866a2be2257c288c7960674).





<a id="aea85d49c038c83ebad68ce386c0a73db" name="aea85d49c038c83ebad68ce386c0a73db"></a>## [◆ ](#aea85d49c038c83ebad68ce386c0a73db)GetUnitsName()

 string OpenTD.Dimension.Time.GetUnitsName  ( [UnitsData](class_open_t_d_1_1_units_data.xhtml) *units*)   inline 

Gets the name of unit corresponding to this dimension, e.g. "kg/m3".

Parameters unitsThe units.ReturnsSystem.String.Implements [OpenTD.Dimension.IDimension](interface_open_t_d_1_1_dimension_1_1_i_dimension.xhtml#a545ddcaa082f8f4d78c6e0c8176fcd02).





---

The documentation for this class was generated from the following file:- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV\_ALPHA/buildXX/OpenTD/Dimension/**Dimensional.cs**