Click or drag to resize
Util Class
Provides a set of utility functions for ASCOM clients and drivers
Inheritance Hierarchy
SystemObject
  ASCOM.UtilitiesUtil

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 6.0.0.0 (6.2.0.2774)
Syntax
public class Util : IDisposable

The Util type exposes the following members.

Constructors
  NameDescription
Public methodUtil
Initializes a new instance of the Util class
Top
Properties
  NameDescription
Public propertyBuildNumber
Platform build number
Public propertyJulianDate
Current Julian date
Public propertyMajorVersion
Platform major version number
Public propertyMinorVersion
Platform minor version number
Public propertyPlatformVersion
Current Platform version in Major.Minor form
Public propertySerialTrace
Enable/disable serial I/O tracing
Public propertySerialTraceFile
Change the serial trace file (default C:\SerialTrace.txt)
Public propertyServicePack
Platform service pack number
Public propertyTimeZoneName
The name of the computer's time zone
Public propertyTimeZoneOffset
UTC offset (hours) for the computer's clock
Public propertyUTCDate
The current UTC Date
Top
Methods
  NameDescription
Public methodArrayToVariantArray
Convert an array of .NET built-in types to an equivalent Variant arrray (array of .NET Objects)
Public methodConvertPressure
Convert atmospheric pressure from one altitude above mean sea level to another
Public methodConvertUnits
Convert from one set of speed / temperature / pressure rain rate units to another
Public methodDateJulianToLocal
Convert Julian date to local-time Date
Public methodDateJulianToUTC
Convert Julian date to UTC Date
Public methodDateLocalToJulian
Convert local-time Date to Julian date
Public methodDateLocalToUTC
Convert local-time Date to UTC Date
Public methodDateUTCToJulian
Convert UTC Date to Julian date
Public methodDateUTCToLocal
Convert UTC Date to local-time Date
Public methodDegreesToDM(Double)
Convert degrees to sexagesimal degrees and minutes with default delimiters DD° MM'
Public methodDegreesToDM(Double, String)
Convert degrees to sexagesimal degrees and minutes with the default minutes delimeter MM'
Public methodDegreesToDM(Double, String, String)
Convert degrees to sexagesimal degrees and minutes
Public methodDegreesToDM(Double, String, String, Int32)
Convert degrees to sexagesimal degrees and minutes with the specified number of minute decimal places
Public methodDegreesToDMS(Double)
Convert degrees to sexagesimal degrees, minutes and seconds with default delimiters DD° MM' SS"
Public methodDegreesToDMS(Double, String)
Convert degrees to sexagesimal degrees, minutes and seconds with with default minute and second delimiters MM' SS"
Public methodDegreesToDMS(Double, String, String)
Convert degrees to sexagesimal degrees, minutes and seconds with default second delimiter SS"
Public methodDegreesToDMS(Double, String, String, String)
Convert degrees to sexagesimal degrees, minutes and seconds
Public methodDegreesToDMS(Double, String, String, String, Int32)
Convert degrees to sexagesimal degrees, minutes and seconds with specified second decimal places
Public methodDegreesToHM(Double)
Convert degrees to sexagesimal hours and minutes with default delimiters HH:MM
Public methodDegreesToHM(Double, String)
Convert degrees to sexagesimal hours and minutes with default minute delimiter MM (null string)
Public methodDegreesToHM(Double, String, String)
Convert degrees to sexagesimal hours and minutes
Public methodDegreesToHM(Double, String, String, Int32)
Convert degrees to sexagesimal hours and minutes with supplied number of minute decimal places
Public methodDegreesToHMS(Double)
Convert degrees to sexagesimal hours, minutes, and seconds with default delimters of HH:MM:SS
Public methodDegreesToHMS(Double, String)
Convert degrees to sexagesimal hours, minutes, and seconds with the default second and minute delimiters of MM:SS
Public methodDegreesToHMS(Double, String, String)
Convert degrees to sexagesimal hours, minutes, and seconds with the default second delimiter SS (null string)
Public methodDegreesToHMS(Double, String, String, String)
Convert degrees to sexagesimal hours, minutes, and seconds
Public methodDegreesToHMS(Double, String, String, String, Int32)
Convert degrees to sexagesimal hours, minutes, and seconds with the specified number of second decimal places
Public methodDewPoint2Humidity
Calculate the relative humidity (%) given the ambient temperature (°Celsius) and dew point (°Celsius)
Public methodDispose
Disposes of resources used by the profile object
Public methodDMSToDegrees
Convert sexagesimal degrees to binary double-precision degrees
Public methodHMSToDegrees
Convert sexagesimal hours to binary double-precision hours
Public methodHMSToHours
Convert sexagesimal hours to binary double-precision hours
Public methodHoursToHM(Double)
Convert hours to sexagesimal hours and minutes with default delimiters HH:MM
Public methodHoursToHM(Double, String)
Convert hours to sexagesimal hours and minutes with default minutes delimiter MM (null string)
Public methodHoursToHM(Double, String, String)
Convert hours to sexagesimal hours and minutes
Public methodHoursToHM(Double, String, String, Int32)
Convert hours to sexagesimal hours and minutes with supplied number of minute decimal places
Public methodHoursToHMS(Double)
Convert hours to sexagesimal hours, minutes, and seconds with default delimiters HH:MM:SS
Public methodHoursToHMS(Double, String)
Convert hours to sexagesimal hours, minutes, and seconds with default minutes and seconds delimters MM:SS
Public methodHoursToHMS(Double, String, String)
Convert hours to sexagesimal hours, minutes, and seconds with default second delimiter of null string
Public methodHoursToHMS(Double, String, String, String)
Convert hours to sexagesimal hours, minutes, and seconds
Public methodHoursToHMS(Double, String, String, String, Int32)
Convert hours to sexagesimal hours, minutes, and seconds with specified number of second decimal places
Public methodHumidity2DewPoint
Calculate the dew point (°Celsius) given the ambient temperature (°Celsius) and relative humidity (%)
Public methodIsMinimumRequiredVersion
Tests whether the current platform version is at least equal to the supplied major and minor version numbers, returns false if this is not the case
Public methodToIntegerCollection
Convert an integer safearray to an ArrayList collection that can be used in scripting languages
Public methodToStringCollection
Convert a string safearray to an ArrayList that can be used in scripting languages
Public methodWaitForMilliseconds
Pauses for a given interval in milliseconds.
Top
Remarks
See Also