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

Time.Gmt is same as Time without localization

val time = Time.now
val gmt = time.Gmt

time.dayTime.brief lp // Prints: 13:34

gmt.dayTime.brief lp  // Prints: 17:34

// Nevertheless they are data equal

(time.real == gmt.real) lp       // Prints: true
Ordering
  1. Alphabetic
Inherited
  1. Gmt
  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. Util.Time.Like.Core.A.Millis
  9. Util.Time.Like
  10. Util.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
    Attributes
    protected
    Definition Classes
    Gmt_Trait_Trait

Method

  1. def age: Util.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: Util.Calendar.Day

    Day.

    Day.

    Day, which includes this time instance.

    Definition Classes
    Gmt_Trait
  4. def dayTime: Util.Time.DayTime

    DayTime component.

    DayTime component.

    DayTime component of this time instance.

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

    Range duration

    Range duration

    Returns Duration between this and that.

    Definition Classes
    _Trait
  6. def isFuture: Boolean

    Check if in future.

    Check if in future.

    Returns true if this time is greater than current.

    Definition Classes
    _Trait
  7. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  8. 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
  9. def make(v: Long): Gmt
    Attributes
    protected
    Definition Classes
    _Trait_Trait
  10. def max(v: Gmt): Gmt

    Maximum value

    Maximum value

    Returns maximum of this and provided value

    Definition Classes
    _Trait → Ordered
  11. def min(v: Gmt): Gmt

    Minimum value

    Minimum value

    Returns minimum of this and provided value

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

    Month.

    Month.

    Month, which includes this time instance.

    Definition Classes
    _Trait
  13. def realNumber: Long
    Attributes
    protected
    Definition Classes
    _TraitLike
  14. def round(l: Util.Time.Duration, r: Custom.Rounding = \/): Gmt

    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
    Gmt_Trait
  15. def setup: Gmt.type
    Attributes
    protected
    Definition Classes
    Gmt_Trait_Trait
  16. def subHours: Util.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
  17. def subMillis: Util.Time.Millis

    Milliseconds remainder.

    Milliseconds remainder.

    Milliseconds remainder when rounded by whole second.

    Value range is from 0 to 999

    Definition Classes
    _Trait
  18. def subMinutes: Util.Time.Minutes

    Minutes remainder.

    Minutes remainder.

    Minutes remainder when rounded by whole hour.

    Value range is from 0 to 59

    Definition Classes
    _Trait
  19. def subSeconds: Util.Time.Seconds

    Seconds remainder.

    Seconds remainder.

    Seconds remainder when rounded by whole minute.

    Value range is from 0 to 59

    Definition Classes
    _Trait
  20. def toBrief: String

    Short String.

    Short String.

    Time is rounded to 1.Second.

    For current Day, day portion is ommited.

    Definition Classes
    _Trait
  21. def toString(): String

    String formated.

    String formated.

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

    Definition Classes
    Gmt_Trait → Any
  22. def totalDays: Util.Time.Days

    Day count.

    Day count.

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

    Definition Classes
    Millis_Trait
  23. def totalHours: Util.Time.Hours

    Hours count.

    Hours count.

    Total hours which fit in this time unit.

    Definition Classes
    Millis_Trait
  24. def totalMillis: Util.Time.Millis

    Milliseconds count.

    Milliseconds count.

    Total milliseconds which fit in this time unit.

    Definition Classes
    GmtMillis_Trait
  25. def totalMinutes: Util.Time.Minutes

    Minutes count.

    Minutes count.

    Total minutes which fit in this time unit.

    Definition Classes
    Millis_Trait
  26. def totalSeconds: Util.Time.Seconds

    Seconds count.

    Seconds count.

    Total seconds which fit in this time unit.

    Definition Classes
    Millis_Trait
  27. def toTime: Time

    Time conversion.

    Time conversion.

    Converts this to Time.

    Definition Classes
    Gmt_Trait
  28. def year: Util.Calendar.Year

    Year.

    Year.

    Year, which includes this time instance.

    Definition Classes
    _Trait

Operator

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

    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
    Gmt_Trait
  4. def +~(v: ~[Util.Time.Duration]): Gmt

    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
    Gmt_Trait
  5. def -(l: Util.Time.Duration): Gmt

    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
    Gmt_Trait
  6. def -~(v: ~[Util.Time.Duration]): Gmt

    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
    Gmt_Trait
  7. def <(v: Gmt): Boolean

    Is less test

    Is less test

    Returns true if this is less than v, false otherwise

    Definition Classes
    _Trait → Ordered
  8. def <=(v: Gmt): 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: Gmt): Boolean

    Is greater test

    Is greater test

    Returns true if this is greater than v, false otherwise

    Definition Classes
    _Trait → Ordered
  11. def >=(v: Gmt): 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