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
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
后缀自动机裸题....
Longest Common Substring
Time Limit: 2000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
[Submit]
[Go Back] [Status]
Description
A st...
分类:
其他好文 时间:
2014-06-24 22:15:40
阅读次数:
240
原文:http://www.javaworld.com/article/2071749/java-app-dev/convert-html-content-to-pdf-format.html译文:http://www.blogjava.net/shaofan/archive/2006/05/30/48866.html关键步骤:转换过程包含以下三步:1.把HTML转换为XHTML;2.把XHTML转换为XSL-FO(ExtensibleStylesh..
分类:
Web程序 时间:
2014-06-24 16:33:14
阅读次数:
237
#!/bin/bash
#
#Time:2014-06-23
#Author:ftlynx
#Function:useNET-SNMPgetNICtrafficonnagios.
Usage(){
echo"Usage:check_traffic.sh[options]"
echo" -H HostIP."
echo" -P net-snmpcommunitystring."
echo" -N NICName."
echo" -W nagioswarningvalue.Format:200,300..
分类:
移动开发 时间:
2014-06-24 16:10:35
阅读次数:
224