SBM ModScript Reference → Programming SBM ModScript → Object Types → Locale → Locale GetAMPMName() Method
Returns Locale-correct name for AM or PM.
| Parameter | Type | Description | 
|---|---|---|
| isAM | bool | Pass true for AM. | 
| Type | Description | 
|---|---|
| string | The Locale-correct name for AM or PM. | 
SBM ModScript version: 11.4.
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
None.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.