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;
	}
}

收藏与分享

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

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

2009年3月23日 | 归档于 未分类
标签:
  1. 2009年3月23日 08:33 | #1

    嗨,这是一条评论。
    要删除一条评论,请先登录系统,查看这篇文章的评论,然后您可以看到编辑或者删除评论的选项。

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

    你果然换程序了。。

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

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

  4. 2009年4月13日 15:48 | #5

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

发表评论

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:-zan n:-xf n:-wx 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