WordPress代码高亮插件测试

WordPress自动生成的这篇就拿来测试用吧。

package com.crm.util;
import java.text.DateFormat;
import java.util.Date;
import java.text.SimpleDateFormat;;
 
public class FormartTime {
	public String currentlyTime() {
		Date date = new Date();
		DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.FULL);
		return dateFormat.format(date);
	}
	public String currentTime(){
 
		String time =new SimpleDateFormat("yyyy-MM-dd").format(new Date());
		return time;
	}
	public String cuTime(){
		String time=new SimpleDateFormat("yyyyMMddhhmmss").format(new Date());
		return time;
	}
	public String currentTimes(String time)
	{
		String times=time.substring(0,9);
		return times;
	}
}

除非另有声明,本站遵循【署名-非商业性使用-相同方式共享 3.0 共享协议】授权。

转载原创文章请注明,转载自:Neeke[http://www.ineeke.com]

本文链接: http://www.ineeke.com/archives/hello-world/

2009年3月23日 | 归档于 网络拾遗 | 5 条评论
标签:
  1. 2009年4月13日 15:48 | #1

    代码是怎样放到文章上面的啊,我放上去就显示错误,是不是用什么插件的啊???

  2. 2009年3月24日 19:14 | #3

    改变了?呵呵,你会火!呵呵

  3. 2009年3月24日 09:56 | #4

    你果然换程序了。。

发表评论

XHTML: 您可以使用这些标签: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">
n:-zy n:-zr n:-zan n:-xf n:-wx n:-tz n:-tt n:-ts n:-sy n:-st n:-ss n:-sk n:-qd n:-pz n:-lh n:-kun n:-ku n:-hx n:-hd n:-gt n:-gg n:-bz

NOTICE: You should type some Chinese word (like “你好”) in your comment to pass the spam-check, thanks for your patience!