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.171 -- Release Build+4f4d518944b843c059d40b523747cd410a7c216d
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