implicit final class ApsoTimeDateTime extends AnyVal
Implicit class that provides new methods for DateTimes.
- Alphabetic
- By Inheritance
- ApsoTimeDateTime
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ApsoTimeDateTime(d1: com.github.nscala_time.time.Imports.DateTime)
- d1
the
DateTimeto which the new methods are provided.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
between(dStart: com.github.nscala_time.time.Imports.DateTime, dEnd: com.github.nscala_time.time.Imports.DateTime): Boolean
Retuns
trueif thisDateTimeis in the range between the two givenDateTimes.Retuns
trueif thisDateTimeis in the range between the two givenDateTimes.- dStart
the starting
DateTime- dEnd
the ending
DateTime- returns
trueif thisDateTimeis in the range between the two givenDateTimes,falseotherwise.
- val d1: com.github.nscala_time.time.Imports.DateTime
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isSameDay(d2: com.github.nscala_time.time.Imports.DateTime): Boolean
Returns
trueif the givenDateTimeis in the same day as this.Returns
trueif the givenDateTimeis in the same day as this.- d2
the second
DateTime- returns
trueif the givenDateTimeis in the same day as this,falseothwerwise.
-
def
toString(): String
- Definition Classes
- Any
-
def
until(d2: com.github.nscala_time.time.Imports.DateTime): IterableInterval
Returns an iterable interval starting at this
DateTime(inclusive) and ending at the givenDateTime(exclusive), with a 1 day step.Returns an iterable interval starting at this
DateTime(inclusive) and ending at the givenDateTime(exclusive), with a 1 day step.- d2
the ending
DateTime- returns
an iterable interval starting at this
DateTime(inclusive) and ending at the givenDateTime(exclusive), with a 1 day step.
-
def
utcLocalDate: com.github.nscala_time.time.Imports.LocalDate
Returns a
LocalDatecorresponding to thisDateTimeat UTC.Returns a
LocalDatecorresponding to thisDateTimeat UTC.- returns
a
LocalDatecorresponding to thisDateTimeat UTC.