TimeStamp

trait TimeStamp extends Ordered[TimeStamp]

Model the TimeStamp concept.

Companion:
object
trait Ordered[TimeStamp]
trait Comparable[TimeStamp]
class Object
trait Matchable
class Any

Value members

Abstract methods

def iteration: Long

Represent the current iteration number.

Represent the current iteration number.

Returns:

the iteration number.

Method to convert the current time to the period of the day.

Method to convert the current time to the period of the day.

Returns:

the period of the day represented by the current time.

def relativeTicks: Long

Represent the ticks after the current iteration number.

Represent the ticks after the current iteration number.

Returns:

the ticks after the current iteration number.

def toHours: Long

Method to convert the ticks from the engine in hours of the virtual time. The hours returned are respect to the current iteration.

Method to convert the ticks from the engine in hours of the virtual time. The hours returned are respect to the current iteration.

Returns:

the hours

def toMinutes: Long

Method to convert the ticks from the engine in the minutes of the virtual time. The minutes returned are respect to the current iteration.

Method to convert the ticks from the engine in the minutes of the virtual time. The minutes returned are respect to the current iteration.

Returns:

the minutes

Concrete methods

@targetName("plus")
Extension method from Time

It allows to sum a DurationTime to a TimeStamp. It will apply the corrections on iteration automatically.

It allows to sum a DurationTime to a TimeStamp. It will apply the corrections on iteration automatically.

@targetName("plus")
Extension method from Time

It allows to sum some absolute ticks to a TimeStamp. It will apply the corrections on iteration automatically.

It allows to sum some absolute ticks to a TimeStamp. It will apply the corrections on iteration automatically.

Inherited methods

def <(that: TimeStamp): Boolean
Inherited from:
Ordered
def <=(that: TimeStamp): Boolean
Inherited from:
Ordered
def >(that: TimeStamp): Boolean
Inherited from:
Ordered
def >=(that: TimeStamp): Boolean
Inherited from:
Ordered
def compare(that: TimeStamp): Int
Inherited from:
Ordered
def compareTo(that: TimeStamp): Int
Inherited from:
Ordered