Gemstone Common Library
Show/Hide TOC

# TimeToString Method

Converts the Time value into a textual representation of years, days, hours, minutes and seconds.

## Definition

Namespace: Gemstone.Units
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.159 -- Release Build+a612c25bc0e1c87e5766544ec4650d2ebcfddcf4
C#
View Source Request Example

    public override string ToString()

VB
View Source Request Example

    Public Overrides Function ToString As String

C++
View Source Request Example

    public:
    virtual String^ ToString() override

JavaScript
View Source Request Example

    function ToString();

#### Return Value

String
The string representation of the value of this instance, consisting of the number of years, days, hours, minutes and seconds represented by this value.

## Remarks

Note that this ToString overload will not display fractional seconds. To allow display of fractional seconds, or completely remove second resolution from the textual representation, use the ToString(Int32, Double) overload instead.

## See Also

#### Reference

Time Structure
ToString Overload
Gemstone.Units Namespace