mydate

所属分类:JavaScript/JQuery
开发工具:Java
文件大小:14KB
下载次数:3
上传日期:2013-08-30 18:29:03
上 传 者zhinengtanpan
说明:  1、 设计一个时间类MyDate:(日期均大于1900年) a、 其中包括年、月、日、时、分、秒。其他成员变量可根据需要增设; b、 可以获得时间的年、月、日、小时、分钟、秒数; c、 计算日期的dayOfWeek(星期几); d、 //实现日期加减一个整数后得到新的日期(加减天数); e、 输入任意一个月份,将此月的日历输出(按星期格式); f、 输入任意年份,将此年的年历输出; g、 实现两个时间相减得到的小时数、分钟数和秒数; h、 输出时间,要求三种格式: yyyy年MM月dd日hh小时mm分ss秒; yyyy-MM-dd hh:mm:ss yyyyMMddhhmmss i、 设计三个个构造方法。1、参数只有年月日的构造方法,小时分钟秒设为0;2、完全参数的构造方法;3、如果使用无参数的构造方法则初始化为系统时间,
(1, the design of a time class MyDate: (date greater than 1900) a, including the year, month, day, hour, minute, second. Other members of the variables can be added according to need b, can get the time of year, month, day, hour, minute, seconds c, calculate dates dayOfWeek (week) d,// ​ ​ subtract an integer realization obtained after the date of new date (plus or minus the number of days) e, enter any one month, this month' s calendar output (by week format) f, enter any year, this year calendar output g, subtracting two times to achieve the number of hours, minutes, and seconds h, output time, requiring three formats: yyyy Year MM-dd hh hours mm minutes ss day second yyyy-MM-dd hh: mm: ss yyyyMMddhhmmss i, design three months constructor. 1, parameter constructor only date, hour minute second set to 0 2, completely argument constructor 3, if no argument constructor initializes to the system time,)

文件列表:
mydate\.classpath (301, 2012-04-24)
mydate\.project (383, 2012-04-24)
mydate\.settings\org.eclipse.jdt.core.prefs (629, 2012-04-24)
mydate\bin\MyDate.class (8508, 2012-11-15)
mydate\bin\shiyan4.class (10346, 2012-11-15)
mydate\src\mydate.java (19060, 2013-08-30)
mydate\.settings (0, 2013-08-30)
mydate\bin (0, 2013-08-30)
mydate\src (0, 2013-08-30)
mydate (0, 2013-08-30)

近期下载者

相关文件


收藏者