The AM name for a given locale.
Name = SRP_Time("AmName", NameLength = "Full", Locale = "")
Returns
The cultural specific name for AM.
Parameters
Parameter | Description |
---|---|
NameLength | How the name is to be returned: options are "Full" or "Abbreviated". (OPTIONAL) |
Locale | A locale for culture specific names. (OPTIONAL) |
Remarks
The "AmName" service retrieves the cultural specific name for AM. The value returned depends on two factors: NameLength and Locale. NameLength can be on of two options: "Full" returns the longest AM name used in that culture and "Abbreviated" returns the culture's AM abbreviation. Locale is the locale name used to target a specific language.
Here is a sample of possible return values. The top row is the Locale value and the left column is the NameLength value:
en-US | es-MX | fr-CA | |
---|---|---|---|
Full | AM | a. m. | a |
Abbreviated | a | a | a |
Examples
// Get the AM name in the local culture Name = SRP_Time("AmName") // Get the abbreviated AM name in the local culture Name = SRP_Time("AmName", "Abbreviated") // Get the abbreviated AM name in Spain Name = SRP_Time("AmName", "Abbreviated", "es-ES")