FloatingGrainOfTime

org.scalatest.time.SpanSugar.FloatingGrainOfTime
class FloatingGrainOfTime(value: Double)

Class containing methods that return a Span time value calculated from the Double value passed to the FloatingGrainOfTime constructor.

Value parameters

value

the value to be converted

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def day: Span

A units method for one day.

A units method for one day.

Attributes

Returns

A Span representing the value passed to the constructor in days

def days: Span

A units method for days.

A units method for days.

Attributes

Returns

A Span representing the value passed to the constructor multiplied in days

def hour: Span

A units method for one hour.

A units method for one hour.

Attributes

Returns

A Span representing the value passed to the constructor in hours

def hours: Span

A units method for hours.

A units method for hours.

Attributes

Returns

A Span representing the value passed to the constructor in hours

A units method for one microsecond.

A units method for one microsecond.

Attributes

Returns

A Span representing the value passed to the constructor in microseconds

A units method for microseconds.

A units method for microseconds.

Attributes

Returns

A Span representing the value passed to the constructor in microseconds

def millis: Span

A shorter units method for milliseconds.

A shorter units method for milliseconds.

Attributes

Returns

A Span representing the value passed to the constructor in milliseconds

A units method for one millisecond.

A units method for one millisecond.

Attributes

Returns

A Span representing the value passed to the constructor in milliseconds

A units method for milliseconds.

A units method for milliseconds.

Attributes

Returns

A Span representing the value passed to the constructor in milliseconds

def minute: Span

A units method for one minute.

A units method for one minute.

Attributes

Returns

A Span representing the value passed to the constructor in minutes

def minutes: Span

A units method for minutes.

A units method for minutes.

Attributes

Returns

A Span representing the value passed to the constructor in minutes

A units method for one nanosecond.

A units method for one nanosecond.

Attributes

Returns

A Span representing the value passed to the constructor in nanoseconds

A units method for nanoseconds.

A units method for nanoseconds.

Attributes

Returns

A Span representing the value passed to the constructor in nanoseconds

def second: Span

A units method for one second.

A units method for one second.

Attributes

Returns

A Span representing the value passed to the constructor in seconds

def seconds: Span

A units method for seconds.

A units method for seconds.

Attributes

Returns

A Span representing the value passed to the constructor in seconds