程序包 cn.vorbote.time

类 TimeSpan


  • public class TimeSpan
    extends Object
    Represents a time interval. We use this class to show diffs from 2 DateTime instances.
    作者:
    vorbote thills@vorbote.cn
    • 构造器详细资料

      • TimeSpan

        public TimeSpan()
    • 方法详细资料

      • TotalSeconds

        public long TotalSeconds()
        Get the total seconds in this TimeSpan.
        返回:
        The total seconds in this TimeSpan.
      • TotalMilliseconds

        public long TotalMilliseconds()
        Get the total milliseconds in this TimeSpan.
        返回:
        The total milliseconds in this TimeSpan.
      • TotalHours

        public double TotalHours()
        Get the total hours in this TimeSpan.
        返回:
        The total milliseconds in this TimeSpan.