Locale GetAMPMName() Method

Returns Locale-correct name for AM or PM.

Function Signature

 string GetAMPMName( bool isAM )

Parameters

Parameter Type Description

isAM

bool

Pass true for AM.

Return

Type Description

string

The Locale-correct name for AM or PM.

Technical Details

SBM ModScript version: 11.4.

Example

var v1 = TimeT( 1516667515 ).ToTimePoint( CreateTimeZone("MST") );
var hours = v1.getHours();
var fr = CreateLocale("fr"); // Create French locale
// Output am/pm using French locale
Ext.WriteStream( fr.GetAMPMName(hours<12) );

Result:

PM

Notes

None.

Related Topics

Locale