Home Cooker Classes Others Rice CookerGX
Classes  >  datetime  >  LongTime
datetime class : LongTime getter

Description

Gets the long form string representation of time portion.

Syntax

datetimeInstance.LongTime

Arguments

None

Return value

ClassDescription
stringThe long form string representation of time portion.

Sample code

datetime dt = new datetime(2016, 3, 4, 4, 13, 0);

string longTime = dt.LongTime;//in my environment. "4:13:00"

Notes

It's a wrapper of the System.DateTime.ToLongTimeString().

Links for reference

Copyright © Rice All rights reserved.