Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
PofHelper..::.FormatTime Method (Int32, Int32, Int32, Int32, Boolean)
PofHelper Class See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
Format a time.

Namespace: Tangosol.IO.Pof
Assembly: Coherence (in Coherence.dll) Version: 3.6.0.0 (3.6.0.0)

# Syntax

C#
    public static string FormatTime(
    	int hour,
    	int minute,
    	int second,
    	int nano,
    	bool isUTC
    )

#### Parameters

hour
  Type: System..::.Int32
  The hour number.

minute
  Type: System..::.Int32
  The minute number.

second
  Type: System..::.Int32
  The second number.

nano
  Type: System..::.Int32
  The nanosecond number.

isUTC
  Type: System..::.Boolean
  true for UTC, false for no time zone.

#### Return Value

A time string.

# Remarks

Time format is the simplest applicable of the following formats:

- HH:MM
- HH:MM:SS
- HH:MM:SS.MMM
- HH:MM:SS.NNNNNNNNN

# See Also

PofHelper Class
FormatTime Overload
Tangosol.IO.Pof Namespace