Click or drag to resize

ILocaleFormatTimeLong Method


Converts a time value to its equivalent string representation using culture-specific long-format information.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax
string FormatTimeLong(
	int timeInMilliSeconds,
	bool dateOnly
)

Parameters

timeInMilliSeconds  Int32
Value of DateTime in milliseconds
dateOnly  Boolean
Specifies whether to only include date information.

Return Value

String
Formatted long string of given time.
Exceptions
ExceptionCondition
ArgumentExceptionWhen the integer value provided is negative.
Example

Milliseconds: 63512604517280

en-us: Tuesday, August 20, 2013 2:08:37 PM

en-us date only: Tuesday, August 20, 2013

fr-ca: 20 août 2013 14:08:37

fr-ca date only: 20 août 2013

See Also