MTime

ostrat.MTime
See theMTime companion object
final class MTime(val int1: Int) extends AnyVal, Ordered[MTime], Int1Elem

An instant of time specified to the nearest minute. By default uees Gregorian Calender

Attributes

Companion
object
Graph
Supertypes
trait Int1Elem
trait IntNElem
trait ValueNElem
trait SpecialT
trait Ordered[MTime]
trait Comparable[MTime]
class Object
class AnyVal
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addDay: MTime
def addDays(num: Int): MTime

Adds the give number of days to the MTime. This hasn't been tested.

Adds the give number of days to the MTime. This hasn't been tested.

Attributes

Adds a month to this MTime. If the new month does not contain the day number, the day number is reduced to the last dasy fp the month. Eg 2023 May 31st goes to 2023 June 30th.

Adds a month to this MTime. If the new month does not contain the day number, the day number is reduced to the last dasy fp the month. Eg 2023 May 31st goes to 2023 June 30th.

Attributes

def addMonths(num: Int): MTime
def addYear: MTime

Adds a year to the time. February 29th goes to February 28th.

Adds a year to the time. February 29th goes to February 28th.

Attributes

def addYears(num: Int): MTime

Adds the given number of years to the time. February 29th goes to February 28th.

Adds the given number of years to the time. February 29th goes to February 28th.

Attributes

override def compare(that: MTime): Int

Attributes

Definition Classes
def dayNum: Int
def hour: Int
def minute: Int
def monthNum: Int

The month number. 1 == January, 12 == December.

The month number. 1 == January, 12 == December.

Attributes

def str3: String

Produces a date String with month in 3 letter abbreviation.

Produces a date String with month in 3 letter abbreviation.

Attributes

def subDay: MTime

Returns a time one day earlier.

Returns a time one day earlier.

Attributes

def subDays(num: Int): MTime

Not correct yet.

Not correct yet.

Attributes

def subMonths(num: Int): MTime
def subYear: MTime

Subtracts a year from the time. February 29th goes to February 28th.

Subtracts a year from the time. February 29th goes to February 28th.

Attributes

def subYears(num: Int): MTime

Subtracts the given number of years from the time. February 29th goes to February 28th.

Subtracts the given number of years from the time. February 29th goes to February 28th.

Attributes

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
def yearInt: Int

Inherited methods

def <(that: MTime): Boolean

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered
override def intBufferAppend(buffer: ArrayBuffer[Int]): Unit

Utility method to append this element on to an ArrayBuffer[Int]. End users should rarely need to use this method. This is useful for methods like filter.

Utility method to append this element on to an ArrayBuffer[Int]. End users should rarely need to use this method. This is useful for methods like filter.

Attributes

Definition Classes
Inherited from:
Int1Elem
override def intForeach(f: Int => Unit): Unit

Performs the side effecting function on each Double in this Product element.

Performs the side effecting function on each Double in this Product element.

Attributes

Definition Classes
Inherited from:
Int1Elem

Concrete fields

val int1: Int