final class _Class extends AnyVal with Util.Time.Like[Util.Time] with Util.Time.Like.Core.A.Millis with Any.Datum.Long.Ordered[Util.Time]

Ordering
  1. Alphabetic
Inherited
  1. Time
  2. Any.Datum.Long.Ordered
  3. Any.Datum.Z.Ordered
  4. Any.Datum.Long
  5. Custom.Number.Like
  6. Any.Datum
  7. Any.Wrap
  8. Time.Like.Core.A.Millis
  9. Time.Like
  10. Time.Like.Core
  11. scala.AnyVal
  12. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Constant

  1. val real: Long
    Definition Classes
    _Class_Trait_Trait

Method

  1. def age: Time.Duration

    Duration to current.

    Duration to current.

    Returns Duration from this time to current time.

    If this is in future, void Duration is returned.

    Definition Classes
    _Trait
  2. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  3. def day: Day

    Day.

    Day.

    Day, which includes this time instance.

    Definition Classes
    _Class_Trait
  4. def dayTime: Time.DayTime

    DayTime component.

    DayTime component.

    DayTime component of this time instance.

    Definition Classes
    _Class_Trait
  5. def durationTo(that: Time): Time.Duration

    Range duration

    Range duration

    Returns Duration between this and that.

    Definition Classes
    _Trait
  6. def format(pattern: String): String

    Format

    Format

    Formats time with given pattern

    See java.text.SimpleDateFormat for details

    val t: Time = \/
    
    t.format("hh 'o`clock' a, zzzz") lp        // Prints: 07 o'clock PM, Eastern Standard Time
    
    t.format("yyyy.MM.dd G 'at' HH:mm:ss z") lp // Prints: 1969.12.31 AD at 19:00:00 EST
    
    t.format("EEE, MMM d, `yy") lp             // Prints: Wed, Dec 31, '69
    
    t.format("h:mm a") lp                       // Prints: 7:00 PM
    Definition Classes
    _Class
  7. def Gmt: Time.Gmt

    GMT Time

    GMT Time

    Built-in constructor to create Time.Gmt

    Definition Classes
    _Class
  8. def isFuture: Boolean

    Check if in future.

    Check if in future.

    Returns true if this time is greater than current.

    Definition Classes
    _Trait
  9. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  10. def isPast: Boolean

    Check if in past.

    Check if in past.

    Returns true if this time is less or equal to current.

    Definition Classes
    _Trait
  11. def make(v: Long): Time
    Attributes
    protected
    Definition Classes
    _Trait_Trait
  12. def max(v: Time): Time

    Maximum value

    Maximum value

    Returns maximum of this and provided value

    Definition Classes
    _Trait → Ordered
  13. def min(v: Time): Time

    Minimum value

    Minimum value

    Returns minimum of this and provided value

    Definition Classes
    _Trait → Ordered
  14. def month: Util.Calendar.Month

    Month.

    Month.

    Month, which includes this time instance.

    Definition Classes
    _Trait
  15. def Precise: Time.PreciseTime
    Definition Classes
    _Class
  16. def realNumber: Long
    Attributes
    protected
    Definition Classes
    _TraitLike
  17. def round(l: Time.Duration, r: Custom.Rounding = \/): Time

    Round .

    Round .

    Rounding this up by Duration specified.

    // DayTime based generic example
    val dt: DayTime = DayTime.make(10, 15, 46, 990)
    
    dt.lp                 // Prints: 10:15:46.990
    dt.pad(1.Second).lp   // Prints: 10:15:47
    dt.pad(10.Seconds).lp // Prints: 10:15:50
    dt.pad(1.Minute).lp   // Prints: 10:16
    Definition Classes
    _Class_Trait
  18. def setup: Time.type
    Attributes
    protected
    Definition Classes
    _Class_Trait_Trait
  19. def skipTo(dt: Time.DayTime): Time

    Skip to next

    Skip to next

    Finds next greater instance of time with given DayTime

    Note: The result may skip to next day

    val time = 2018.Year.start
    
    time lp                                   // Prints: 2018-01-01 0:00:00
    
    time.skipTo(16.Hours) lp                  // Prints: 2018-01-01 16:00:00
    
    time.skipTo(16.Hours).skipTo(10.Hours) lp // Prints: 2018-01-02 10:00:00
    Definition Classes
    _Class
  20. def subHours: Time.Hours

    Hours remainder.

    Hours remainder.

    Hours remainder when rounded by whole day (24 hours).

    Value range is from 0 to 23

    Definition Classes
    _Trait
  21. def subMillis: Time.Millis

    Milliseconds remainder.

    Milliseconds remainder.

    Milliseconds remainder when rounded by whole second.

    Value range is from 0 to 999

    Definition Classes
    _Trait
  22. def subMinutes: Time.Minutes

    Minutes remainder.

    Minutes remainder.

    Minutes remainder when rounded by whole hour.

    Value range is from 0 to 59

    Definition Classes
    _Trait
  23. def subSeconds: Time.Seconds

    Seconds remainder.

    Seconds remainder.

    Seconds remainder when rounded by whole minute.

    Value range is from 0 to 59

    Definition Classes
    _Trait
  24. def toBrief: String

    Short String.

    Short String.

    Time is rounded to 1.Second.

    For current Day, day portion is ommited.

    Definition Classes
    _Trait
  25. def toString(): String

    String formated.

    String formated.

    Format is "yyyy-MM-dd HH:mm:ss.SSS".

    Definition Classes
    _Class_Trait → Any
  26. def totalDays: Time.Days

    Day count.

    Day count.

    Total days (24.Hours) which fit in this time unit.

    Definition Classes
    Millis_Trait
  27. def totalHours: Time.Hours

    Hours count.

    Hours count.

    Total hours which fit in this time unit.

    Definition Classes
    Millis_Trait
  28. def totalMillis: Time.Millis

    Milliseconds count.

    Milliseconds count.

    Total milliseconds which fit in this time unit.

    Definition Classes
    _ClassMillis_Trait
  29. def totalMinutes: Time.Minutes

    Minutes count.

    Minutes count.

    Total minutes which fit in this time unit.

    Definition Classes
    Millis_Trait
  30. def totalSeconds: Time.Seconds

    Seconds count.

    Seconds count.

    Total seconds which fit in this time unit.

    Definition Classes
    Millis_Trait
  31. def toTime: Time

    Time conversion.

    Time conversion.

    Converts this to Time.

    Attributes
    protected
    Definition Classes
    _Class_Trait
  32. def year: Util.Calendar.Year

    Year.

    Year.

    Year, which includes this time instance.

    Definition Classes
    _Trait
  33. def zoneDT: ZonedDateTime
    Attributes
    protected
    Definition Classes
    _Class

Operator

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def +(l: Time.Duration): Time

    Plus Duration

    Plus Duration

    Creates a new instance with specified value added

    2018.Year.start + 1.Day lp // Prints 2018-01-02 00:00
    Definition Classes
    _Class_Trait
  4. def +~(v: ~[Time.Duration]): Time

    Plus all

    Plus all

    Creates a new instance with added stream values

    2018.Year.start +~ (~[Duration] + 1.Day + 1.Hour + 1.Minute) lp // Prints 2018-01-02 01:01
    Definition Classes
    _Class_Trait
  5. def -(l: Time.Duration): Time

    Subtract value

    Subtract value

    Creates a new instance with specified value subtracted

    2018.Year.start - 1.Day lp  // Prints 2017-12-31 00:00
    Definition Classes
    _Class_Trait
  6. def -~(v: ~[Time.Duration]): Time

    Subtract all values

    Subtract all values

    Creates a new instance with all stream values subtracted

    2018.Year.start -~ (~[Duration] + 1.Day + 1.Hour + 1.Minute) lp // Prints 2017-12-30 22:59
    Definition Classes
    _Class_Trait
  7. def <(v: Time): Boolean

    Is less test

    Is less test

    Returns true if this is less than v, false otherwise

    Definition Classes
    _Trait → Ordered
  8. def <=(v: Time): Boolean

    Is less or equal test

    Is less or equal test

    Returns true if this is less or equal to v, false otherwise

    Definition Classes
    _Trait → Ordered
  9. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  10. def >(v: Time): Boolean

    Is greater test

    Is greater test

    Returns true if this is greater than v, false otherwise

    Definition Classes
    _Trait → Ordered
  11. def >=(v: Time): Boolean

    Is greater or equal test

    Is greater or equal test

    Returns true if this is greater or equal to v, false otherwise

    Definition Classes
    _Trait → Ordered