DateTime dt = DateTime.Now;//2010年10月4日 17点05分 string str = ""; //str = string.Format("{0:y yy yyy yyyy}", dt); //10 10 2010 20...
分类:
其他好文 时间:
2014-06-27 21:18:51
阅读次数:
207
第一种:日期格式 cell.setCellValue(new Date(2008,5,5)); //set date format HSSFCellStyle cellStyle = demoWorkBook.createCellStyle(); HSSFDataFo...
分类:
其他好文 时间:
2014-06-26 18:15:38
阅读次数:
192
sscanf函数sscanf函数基本知识函数原型int sscanf( const char *buffer, const char *format [, argument ] ... );函数功能将buffer中的数据按照format格式读取后存储在argument中,返回值表示为成功转换的的数据...
分类:
其他好文 时间:
2014-06-26 15:49:14
阅读次数:
160
package com.jframe.kit;
import net.sourceforge.pinyin4j.PinyinHelper;
import net.sourceforge.pinyin4j.format.HanyuPinyinCaseType;
import net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat;
im...
分类:
编程语言 时间:
2014-06-26 12:10:42
阅读次数:
297
MySQL查询的方式很多,下面为您介绍的MySQL查询实现的是查询本周、上周、本月、上个月份的数据,如果您对MySQL查询方面感兴趣的话,不妨一看查询当前这周的数据SELECT name,submittime FROM enterprise WHERE YEARWEEK(date_format(su...
分类:
数据库 时间:
2014-06-25 18:14:16
阅读次数:
239
问题提示:Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.Conversion to Dalvik format failed: Unable to exec...
分类:
编程语言 时间:
2014-06-25 17:18:38
阅读次数:
292
这几天百度的结果,总结一下举例说明:某网站提供发送短信接口业务接口:SERVICE_URL变量参数:username,pwd,mobiles,content返回:resultcode1、构建发送的xml或者其他形式的请求stringpostData=string.Format("ActionCode...
分类:
Web程序 时间:
2014-06-25 15:12:11
阅读次数:
230
1、格式化货币(跟系统的环境有关,中文系统默认格式化人民币,英文系统格式化美元)string.Format("{0:C}",0.2) 结果为:¥0.20 (英文操作系统结果:$0.20)默认格式化小数点后面保留两位小数,如果需要保留一位或者更多,可以指定位数 string.Format("{0:C1...
分类:
其他好文 时间:
2014-06-25 12:01:42
阅读次数:
271
MySQL5.6主从复制(读写分离)教程1、MySQL5.6开始主从复制有两种方式:基于日志(binlog);基于GTID(全局事务标示符)。需要注意的是:GTID方式不支持临时表!所以如果你的业务系统要用到临时表的话就不要考虑这种方式了,至少目前最新版本MySQL5.6.12的GTID复制还是不支持临..
分类:
数据库 时间:
2014-06-25 06:23:52
阅读次数:
449
mysql主从复制配置主服务器:192.168.0.100从服务器192.168.0.101主服务器配置my.ini(window下 linux 下是my.cnf)#开启二进制日志log-bin=mysql-bin#给服务器起一个唯一的idserver-id=1#指定日志格式binlog-forma...
分类:
数据库 时间:
2014-06-25 00:56:27
阅读次数:
404