当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: http://www.blueidea.com/bbs/news
 

 

 ·serial port (2) 初始化com口    »显示摘要«
    摘要:如何让com口工作在中断模式:1, 在8259中把com口对应的中断打开2, mcr bit3(out2)设1(x86架构)3, ier 把需要的中断置起来, 如何让com口工作在fifo模式:1。设置fcr bit0让com知道下面是设置fifo模式的命令。2。设置fcr bit7-bit6 来决定缓冲大小 0 0 1byte 0 1 4byte 1 0 8byte 1 1 14byte3. ......
    摘要:[译]the other ways to detect ollydbg 检测ollydbg的另类方法 这是linhanshi兄放在他的网站上的,我觉得不错就翻译了下,水平很烂,多多包涵!the other ways to detect ollydbg 检测ollydbg的另类方法pumqara作/roba[tt]译前言现在是2004年了,ring-3级调试器被越来越多地使用,因为它们有图形界面......


java关于日期的运算等处理方法
上一页   ...<%@ page import="java.util.date"%>

<%@ page import="java.text.dateformat"%> 【程序编程相关:关于邮箱的相关报告

【推荐阅读:HTML教程(4)-列表

<% 【扩展信息:HTML教程(5)-表格

date dnow = new date();

simpledateformat formatter = new simpledateformat("e yyyy.mm.dd ´at´ hh:mm:ss a zzz");

out.println("it is " + formatter.format(dnow));

%>

输出的结果为:

it is 星期五 2003.05.30 at 11:30:46 上午 cst

(更为详尽的格式符号请参看simpledateformat类)

6.将字符串转换为日期

<%@ page import="java.util.date"%>

<%@ page import="java.text.dateformat"%>

<%

string input = "1222-11-11";

simpledateformat formatter = new simpledateformat("yyyy-mm-dd");

date t = null;

try{

t = formatter.parse(input);

out.println(t);

}catch(parseexception e){

out.println("unparseable using " + formatter);

}

%>

输出结果为:

fri nov 11 00:00:00 cst 1222

7.计算日期之间的间隔

<%@ page import="java.util.date"%>

<%@ page import="java.text.dateformat"%>

<%

string input = "2003-05-01";


...   下一页
 ·using的另一種用法    »显示摘要«
    摘要:mail: zsc771120@yahoo.com.cn先看下面的代碼: using( form_arg arg=new form_arg(this.ip,this.port,this.limit) ) { arg.left = this.left + 30; arg.top = this.top + 25; arg.showdialog(); arg.get(out this.ip, out t......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE