[Gambas-bugtracker] Bug #1969: result of function Format () is error

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Tue Nov 24 08:03:30 CET 2020


http://gambaswiki.org/bugtracker/edit?object=BUG.1969&from=L21haW4-

Comment #30 by 梁炜:

In fact, I think Gambas only provides dates in the world standard format (ISO 8601-1:2019). The localized display of date and time is handed over to the user or translator.
For example, "2020年11月05日 12时23分15秒" and "2020-11-05 12:23:15" are both legal date formats in Chinese. Sometimes we need to use all Chinese date expression "二零二零年十一月五日". So it's hard for you to balance them. Let users make their own choices.
1)It's November in Chinese.
2)It's November in Arabic number and Chinese unit of month.
3)It's Monday in Chinese.
4)It is the number 1 in Chinese.it can be used to refer to Monday. "一二三四五六" is used to refer to Monday to Saturday in order. And Sunday uses "日".
But this is the simplest expression. Chinese often adds "周" or "星期" before "一" to express Monday.
5)In chinese, The order of use is Year,Month,Day,Weekday. Months expressed in Chinese and Arabic number are not mixed.For example, "十一月1日","十一月01日","2020年十一月" are both incorrect. "二零二零年十一月一日","2020年11月01日","十一月一日","11月1日" are both correct.
6)In Chinese, the month has no special name. It is a number followed by a unit that means month."十一" is just the number eleven. "十一" followed by "月" is November.In fact, some months have special names, but they are only used in the Chinese lunar calendar.
A Chinese is already so troublesome. Think of all the people in the world. There is a saying in China that "众口难调".It means that there are a lot of people coming to eat, and it's hard for a good cook to satisfy everyone's taste.




More information about the Bugtracker mailing list