DateOptions.GetLongTimePattern Method
Gets the format pattern for a long time value.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Function GetLongTimePattern ( _
hoursMode24 As Boolean _
) As String
'Usage
Dim instance As DateOptions
Dim hoursMode24 As Boolean
Dim returnValue As String
returnValue = instance.GetLongTimePattern(hoursMode24)
public string GetLongTimePattern(
bool hoursMode24
)
Parameters
hoursMode24
Type: System.Booleantrue to indicate that the time is displayed using a 24-hour clock; otherwise, false.
Return Value
Type: System.String
The format pattern for a long time value.
Remarks
The format pattern for a long time value is “h:mm:ss”.