程序包 cn.vorbote.time
类 TimeSpan
java.lang.Object
cn.vorbote.time.TimeSpan
Represents a time interval. We use this class to
show diffs from 2
DateTime instances.- 作者:
- vorbote thills@vorbote.cn
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明toString()doubleGet the total hours in thisTimeSpan.longGet the total milliseconds in thisTimeSpan.longGet the total seconds in thisTimeSpan.
-
构造器详细资料
-
TimeSpan
public TimeSpan()
-
-
方法详细资料
-
toString
-
TotalSeconds
public long TotalSeconds()Get the total seconds in thisTimeSpan.- 返回:
- The total seconds in this
TimeSpan.
-
TotalMilliseconds
public long TotalMilliseconds()Get the total milliseconds in thisTimeSpan.- 返回:
- The total milliseconds in this
TimeSpan.
-
TotalHours
public double TotalHours()Get the total hours in thisTimeSpan.- 返回:
- The total milliseconds in this
TimeSpan.
-