当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: A Date object represents a prec
 

 

 ·对谈:webwork vs. struts    »显示摘要«
    摘要: 透明/编著 本文的内容来自各种渠道,有朋友非正式的讨论与邮件往来,也有网络上的各种资料,还有开发者们口耳相传的实践经验。为了方便读者,我不揣冒昧将它们整理成对话的形式,并借了两个虚构人物(webwork的爱好者weber和struts的老用户steven)之口来比较这两种流行的web框架,希望对读者的选择有所帮助。 steven:嘿,weber,你最近忙什么呢? weber:哦,我刚做了一......
 ·j2me学习笔记(六)    »显示摘要«
    摘要: 低级事务处理 要处理低级事务或者进行屏幕画图,那么我们必须要使用canvas。一般要编写手机游戏也是需要canvas来 制作,它提供了处理键盘,手写笔以及游戏的图形处理功能。 因为canvas由displayable继承来的,所以具有addcommadn()方法,也可一和commadn其他属性配合组 成高级事务处理。screen于canvas有相同的特性,但是screen允许开发人......


java.util.Date

a date object represents a precise moment in time, down to the millisecond. dates are represented as a long that counts the number of milliseconds since midnight, january 1, 1970, greenwich mean time.

to create a date object for the current date and time use the noargs date() constructor like this: 【程序编程相关:Shit? Happens, Part

does this have a year 2000 problem? if so in what year? 【推荐阅读:面向对象设计五大原则(2)

to create a date object for a specific time, pass the number of milliseconds since midnight, january 1, 1970, greenwich meantime to the constructor, like this: 【扩展信息:几个String对象?

date now = new date();

date midnight_jan2_1970 = new date(24l*60l*60l*1000l);

you can return the number of milliseconds in the date as a long, using the gettime() method. for example, to time a block of code, you might do this


...   下一页
    摘要: 自从以前学习jsp开始,中文乱码问题就一直不断,苦不堪言。这次在项目开始之前,我们要解决的第一个问题就是把mysql的中文乱码问题搞定。经过多天的努力,终于成功的解决了中文乱码问题,特写在这里,以备后用。软件及环境:windows xp(2000), j2sdk1.4.2, tomcat 5.0.25, mysql 4.1, ems mysql manager 2(方便建表,版本2.8.5.1)......
» 本期热门文章:

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