What does the 130000 in Excel locale code [$-130000] mean?

前端 未结 2 2035
再見小時候
再見小時候 2020-12-10 09:30

Please note that my question is closely linked to this question. However, as the above question is technically already answered in the comments and I am still very curious t

2条回答
  •  佛祖请我去吃肉
    2020-12-10 09:42

    I don't have enough reputation to comment, but here is some additional information. The top bit of xx and yy, if set, mean to accept input in that format. It needs to be stripped off (& 0x7f) before checking the value in the table listed in the prior answer.

    Also modern Excel 365 now allows this syntax: [$-lg-CN,xxyy] where lg-CN is the language and country of the locale (replacing zzzz), and xxyy are as defined in the prior answer. Leading zeros are not needed and the whole ,xxyy part is optional.

    In addition, a gannen suffix -x-gannen is allowed on Japanese locale codes, which replaces a 1 value (first year of emperor reign) for e formats with . For example:

    5/1/2019 with number format [$-ja-JP-x-gannen]ggg e is 令和 元 instead of 令和 1 without the gannen indicator.

提交回复
热议问题