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.164 -- Release Build+6bbd7ea5ff4ad8917f12d693358b77d083ee278e
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