TimeInterval

scalation.database.TimeInterval
See theTimeInterval companion class
object TimeInterval

The TimeInterval companion object provides factory functions for creating time-intervals.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(ti: String): TimeInterval

Create a time-interval from the given string specification. e.g., "T 03:55 pm-05:10 pm"

Create a time-interval from the given string specification. e.g., "T 03:55 pm-05:10 pm"

Value parameters

ti

the time-interval as a string

Attributes

Create a time-interval from two time-of-week objects.

Create a time-interval from two time-of-week objects.

Value parameters

tw1

the first time-of-week

tw2

the second time-of-week

Attributes

def makeIntervals(tis: String*): Array[TimeInterval]

Return an array of time-intervals.

Return an array of time-intervals.

Value parameters

tis

the var-arg of time-interval specification strings

Attributes

def multiDay(mti: String): Array[TimeInterval]

Create a multiple time-interval array from the given string specification. e.g., "T R 03:55 pm-05:10 pm"

Create a multiple time-interval array from the given string specification. e.g., "T R 03:55 pm-05:10 pm"

Value parameters

mti

multiple time-intervals as a string

Attributes

def showIntervals(name: String, tia: Array[TimeInterval]): Unit

Show the time-intervals in the array of time-intervals tia

Show the time-intervals in the array of time-intervals tia

Value parameters

name

the name associated with the time-intervals.

tia

the array of time-intervals

Attributes