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.152 -- Release Build+1bdd5395ab91a1a698659399697f8334859b02d2
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