java 常用工具类
DateTimeHelper 时间组件
/**
*
*/
package com.ibm08001.bbs.utils;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
*
*/
public class DateTimeHelper {
private static SimpleDateFormat FULL_SDF = new SimpleDateFormat(
"yyyy-MM-dd HH:mm:ss");
private static SimpleDateFormat DFULL_SDF = new SimpleDateFormat(
"yyyy-MM-dd");
private static SimpleDateFormat DFULL_SDF_SLASH = new SimpleDateFormat(
"yyyy/MM/dd HH:mm");
private static SimpleDateFormat FULL_SDF_NOSP = new SimpleDateFormat(
"yyyyMMddHHmm");
private static SimpleDateFormat DFULL_SDF_CN = new SimpleDateFormat(
"yyyy年MM月dd日");
private static SimpleDateFormat ONLY_TIME = new SimpleDateFormat("HH:mm");
private static SimpleDateFormat MD_TIME = new SimpleDateFormat("MM-dd");
public static String getMDTime(Date date) {
if (date != null) {
return MD_TIME.format(date);
} else {
return "";
 
相关文档:
加密后是一个32位大写字母组合形式,并且本加密方法不可逆!
public String kljm(String dm,String kl)
{
String mw, cmm;
int k, i, tmp, a, hf, lf, bytes = 16;
int mm[], l,rand_seed;
rand_seed = 12345;
int len=kl.length();
if(len>=12) len=12;
mw =kl.substring(0,len) + dm.trim();
l = ......
来自:http://www.anymobile.org
1、摘要..........................................................................1
2、改善服务器的性能...........................................................1
3、分析器原理...................................................................2
4、JProfiler 简介... ......
据InternetNews.com报道,作为今年的第一次更新,Java SE 6 Update 18(也称为6u18)不仅修复了超过300个bug(够多的啊),而且更值得注意的是,提升了虚拟机HotSpot的性能,这将同时有益于Java和JavaFX(基于JVM的RIA方案)应用程序。 此外,Java安装器的底层机制被替换,可用性大大提高。 ......
In recent years, web services have emerged as a popular technology for remote method calls. Technically, a web service has two components:
A service that can be accessed with the SOAP transport protocol
A description of the service in the WSDL format
SOAP is an XML protocol for invoking remote me ......