填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

getLocaleExtraDayPeriodRules

检索特定于语言环境的规则,该规则用于确定在为一个语言环境中定义了多个时段时要使用的一天时段。

Retrieves locale-specific rules used to determine which day period to use when more than one period is defined for a locale.

查看"说明"...

      
      getLocaleExtraDayPeriodRules(locale: string): (Time | [Time, Time])[]
    
参数
locale string

用于要使用的语言环境格式规则的语言环境代码。

A locale code for the locale format rules to use.

返回值

语言环境的规则,单个时间值或 from-time,to-time 或 null 的数组(如果没有可用时段)。

(Time | [Time, Time])[]: The rules for the locale, a single time value or array of from-time, to-time, or null if no periods are available.

参见

说明

每个预定义的一天时段都有一个规则。第一条规则适用于第一个一天时段,依此类推。如果没有可用的规则,请回退为 AM / PM。

There is a rule for each defined day period. The first rule is applied to the first day period and so on. Fall back to AM/PM when no rules are available.

本规则可以将时间段指定为时间范围或单个时间值。

A rule can specify a period as time range, or as a single time value.

仅当你加载了完整的语言环境数据时,此功能才可用。请参阅 “I18n 指南”

This functionality is only available when you have loaded the full locale data. See the "I18n guide".