TimeOfWeek

scalation.database.TimeOfWeek
See theTimeOfWeek companion object
case class TimeOfWeek(day: Int, second: Long)

The TimeOfWeek class keeps track relative date-time within a week, e.g., for a weekly schedule.

Value parameters

day

the day of the week (Mon -> 1, ... Sun -> 7)

time

the time of day in seconds (0 to 86399)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def format(withSec: Boolean): String

Format this time-of-week in "E HH:mm:ss", E is day-first letter, HH is hour (2-digit, 24 hour), mm is minute (2-digit), and ss is second (2-digit).

Format this time-of-week in "E HH:mm:ss", E is day-first letter, HH is hour (2-digit, 24 hour), mm is minute (2-digit), and ss is second (2-digit).

Value parameters

withSec

flag indicating whether to include seconds or stop at minutes

Attributes

See also
override def toString: String

Convert this time-of-week object to a string

Convert this time-of-week object to a string

Attributes

Definition Classes
Any
def toTimeNum(baseDate: TimeNum): TimeNum

Convert this time-of-week specification to a TimeNum. It uses the number of seconds since start of the relative week.

Convert this time-of-week specification to a TimeNum. It uses the number of seconds since start of the relative week.

Value parameters

baseDate

the absolute date for start of the relative week if absolute date is unimportant, may pass firstMonday

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val dayArr: Array[Char]