Click or drag to resize

GetAmPm Function

Return and optionally change the setting that determines whether time strings are in 12-hour or 24-hour format.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.2a
Syntax
 FUNCTION GetAmPm() AS LOGIC
View Source

Return Value

Type: Boolean
If <lNewSetting> is not specified, SetAMPM() returns the current setting.  If <lNewSetting> is specified, the previous setting is returned.
Remarks
Examples
This example shows the difference between the 12-hour and 24-hour display formats:
X#
SetPMExt(" pm")
SetAMPM(FALSE)
? TIME()                // Result: 13:10:15 pm
SetAMPM(TRUE)
? TIME()                // Result: 01:10:15 pm
See Also