forked from sheetjs/sheetjs
		
	- support 上午/下午 (like AM/PM, supported in en-US and other locales) - `format(number)` guess format if table is missing value - removed entry 65535 from table
		
			
				
	
	
		
			35 lines
		
	
	
		
			692 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			692 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| function init_table(t/*:any*/) {
 | |
| 	t[0]=  'General';
 | |
| 	t[1]=  '0';
 | |
| 	t[2]=  '0.00';
 | |
| 	t[3]=  '#,##0';
 | |
| 	t[4]=  '#,##0.00';
 | |
| 	t[9]=  '0%';
 | |
| 	t[10]= '0.00%';
 | |
| 	t[11]= '0.00E+00';
 | |
| 	t[12]= '# ?/?';
 | |
| 	t[13]= '# ??/??';
 | |
| 	t[14]= 'm/d/yy';
 | |
| 	t[15]= 'd-mmm-yy';
 | |
| 	t[16]= 'd-mmm';
 | |
| 	t[17]= 'mmm-yy';
 | |
| 	t[18]= 'h:mm AM/PM';
 | |
| 	t[19]= 'h:mm:ss AM/PM';
 | |
| 	t[20]= 'h:mm';
 | |
| 	t[21]= 'h:mm:ss';
 | |
| 	t[22]= 'm/d/yy h:mm';
 | |
| 	t[37]= '#,##0 ;(#,##0)';
 | |
| 	t[38]= '#,##0 ;[Red](#,##0)';
 | |
| 	t[39]= '#,##0.00;(#,##0.00)';
 | |
| 	t[40]= '#,##0.00;[Red](#,##0.00)';
 | |
| 	t[45]= 'mm:ss';
 | |
| 	t[46]= '[h]:mm:ss';
 | |
| 	t[47]= 'mmss.0';
 | |
| 	t[48]= '##0.0E+0';
 | |
| 	t[49]= '@';
 | |
| 	t[56]= '"上午/下午 "hh"時"mm"分"ss"秒 "';
 | |
| }
 | |
| 
 | |
| var table_fmt = {};
 | |
| init_table(table_fmt);
 |