Datetime

io.github.edadma.datetime.Datetime
See theDatetime companion object
case class Datetime(year: Int, month: Int, day: Int, hours: Int, minutes: Int, seconds: Int, nanos: Int) extends Ordered[Datetime]

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Ordered[Datetime]
trait Comparable[Datetime]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def +(days: Int): Datetime
infix def compare(that: Datetime): Int
def dayOfWeek: Int
def dayOfYear: Int
def epochNanos: Long
def epochSeconds: Long
def format(s: String): String
def isFuture(tz: Timezone): Boolean
def isPast(tz: Timezone): Boolean
def lengthOfYear: Int
def minusDays(days: Int): Datetime
def minusHours(hours: Int): Datetime
def minusMinutes(minutes: Int): Datetime
def minusSeconds(seconds: Int): Datetime
def plusDays(days: Int): Datetime
def plusHours(hours: Int): Datetime
def plusMinutes(minutes: Int): Datetime
def plusSeconds(seconds: Int): Datetime
def sameDateAs(that: Datetime): Boolean
def toDisplayString: String
def toISOString: String
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def <(that: Datetime): Boolean

Attributes

Inherited from:
Ordered
def <=(that: Datetime): Boolean

Attributes

Inherited from:
Ordered
def >(that: Datetime): Boolean

Attributes

Inherited from:
Ordered
def >=(that: Datetime): Boolean

Attributes

Inherited from:
Ordered
def compareTo(that: Datetime): Int

Attributes

Inherited from:
Ordered
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val epochDays: Int
lazy val epochMillis: Long
val isLeapYear: Boolean
val lengthOfMonth: Int