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.175 -- Release Build+70cfebd19f80455d07e1cf93607e59f6af0e38f4
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