forked from fanruan/fineui
68 lines
1.1 KiB
68 lines
1.1 KiB
6 years ago
|
/**
|
||
|
* Created by astronaut007 on 2018/8/8
|
||
|
*/
|
||
|
// 牵扯到国际化这些常量在页面加载后再生效
|
||
|
// full day names
|
||
6 years ago
|
BI.Date = BI.Date || {};
|
||
|
BI.Date._DN = ["星期日",
|
||
6 years ago
|
"星期一",
|
||
|
"星期二",
|
||
|
"星期三",
|
||
|
"星期四",
|
||
|
"星期五",
|
||
|
"星期六",
|
||
|
"星期日"];
|
||
|
|
||
|
// short day names
|
||
6 years ago
|
BI.Date._SDN = ["日",
|
||
6 years ago
|
"一",
|
||
|
"二",
|
||
|
"三",
|
||
|
"四",
|
||
|
"五",
|
||
|
"六",
|
||
|
"日"];
|
||
|
|
||
|
// Monday first, etc.
|
||
6 years ago
|
BI.Date._FD = 1;
|
||
6 years ago
|
|
||
|
// full month namesdat
|
||
6 years ago
|
BI.Date._MN = [
|
||
6 years ago
|
"一月",
|
||
|
"二月",
|
||
|
"三月",
|
||
|
"四月",
|
||
|
"五月",
|
||
|
"六月",
|
||
|
"七月",
|
||
|
"八月",
|
||
|
"九月",
|
||
|
"十月",
|
||
|
"十一月",
|
||
6 years ago
|
"十二月"];
|
||
6 years ago
|
|
||
|
// short month names
|
||
6 years ago
|
BI.Date._SMN = [0,
|
||
6 years ago
|
1,
|
||
|
2,
|
||
|
3,
|
||
|
4,
|
||
|
5,
|
||
|
6,
|
||
|
7,
|
||
|
8,
|
||
|
9,
|
||
|
10,
|
||
|
11];
|
||
|
|
||
6 years ago
|
BI.Date._QN = ["", "第1季度",
|
||
6 years ago
|
"第2季度",
|
||
|
"第3季度",
|
||
|
"第4季度"];
|
||
|
|
||
|
/** Adds the number of days array to the Date object. */
|
||
6 years ago
|
BI.Date._MD = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
||
6 years ago
|
|
||
|
// 实际上无论周几作为一周的第一天,周初周末都是在-6-0间做偏移,用一个数组就可以
|
||
6 years ago
|
BI.Date._OFFSET = [0, -1, -2, -3, -4, -5, -6];
|