Moment

works.iterative.core.Moment$package.Moment
object Moment extends MomentPlatform

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Moment.type

Members list

Type members

Classlikes

enum ParseError

Why an ISO string failed to parse, precise enough for the caller to act or report on.

Why an ISO string failed to parse, precise enough for the caller to act or report on.

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def ofEpochMilli(epochMilli: Long): Moment
def parseIso(value: String): Either[ParseError, Moment]

Parses an ISO-8601 instant (UTC, Z suffix only). Fractional seconds beyond milliseconds are truncated. Reports what is wrong with anything else, identically on all platforms.

Parses an ISO-8601 instant (UTC, Z suffix only). Fractional seconds beyond milliseconds are truncated. Reports what is wrong with anything else, identically on all platforms.

Attributes

def parseIsoOption(value: String): Option[Moment]

parseIso for callers that only care whether it parsed.

parseIso for callers that only care whether it parsed.

Attributes

Inherited methods

protected def formatIso(epochMilli: Long): String

Attributes

Inherited from:
MomentPlatform
protected def parseCanonicalIso(value: String): Option[Long]

Calendar arithmetic for the shared parseIso; input has already passed the syntactic guard.

Calendar arithmetic for the shared parseIso; input has already passed the syntactic guard.

Attributes

Inherited from:
MomentPlatform

Givens

Givens

given given_Ordering_Moment: Ordering[Moment]

Extensions

Extensions

extension (m: Moment)
def epochMilli: Long
def plusDays(days: Int): Moment
def toIsoString: String

Canonical form: uuuu-MM-ddTHH:mm:ss.SSSZ — always milliseconds, always Z.

Canonical form: uuuu-MM-ddTHH:mm:ss.SSSZ — always milliseconds, always Z.

Attributes