TimeUtils

Inherits from

GEOCALCPBW_NAMESPACE::GeoBase

 

Description

The TimeUtils class is a static class that is used for transforming time and date values between month,day,year and time to a double value designator which is suitable for use in HTDP conversions. The Epoch date used in the construction of these transformations is a decimal year format.  For example, 1999.1232 represents the year 1999 with an additional 12.32% of the year.  Since there are 365 days in 1999 (it's not a leap year), that would be 45 days into the year, or Feburary 14th 1999. Although it is possible to specify hours and minutes, the current model will not show significant change at that level of detail.

 

Public Methods

Method

Description

FromDecimalYears

Converts decimal year epoch values to day, month, year

ToDecimalYears

Converts day, month, year into a decimal year formatting