类的使用
cn.vorbote.core.time.DateTime
使用DateTime的程序包
-
cn.vorbote.core.time中DateTime的使用
返回DateTime的cn.vorbote.core.time中的方法修饰符和类型方法说明Add the specific time to theDateTimeinstance.DateTime.addDays(double days) Returns a newDateTimethat adds the specified number of days to the value of this instance.DateTime.addHours(double hours) Returns a newDateTimethat adds the specified number of hours to the value of this instance.DateTime.addMinutes(double minutes) Returns a newDateTimethat adds the specified number of hours to the value of this instance.DateTime.addMonths(int months) Returns a newDateTimethat adds the specified number of months to the value of this instance.DateTime.addSeconds(int seconds) Returns a newDateTimethat adds the specified number of seconds to the value of this instance.DateTime.addYears(int years) Returns a newDateTimethat adds the specified number of years to the value of this instance.Minus the specific time to theDateTimeinstance.static DateTimeDateTime.now()Get the current Date and Time.Set pattern for this datetime.DateTime.timestamp(long timestamp) Set the timestamp.参数类型为DateTime的cn.vorbote.core.time中的方法修饰符和类型方法说明intCompares this object with the specified object for order.ADateTimeinstance minus another instance will return aTimeSpaninstance, thisTimeSpaninstance will tell you how many days, hours, minutes, seconds and milliseconds between them.