MomentPlatform

works.iterative.core.MomentPlatform

JVM side of the Moment companion: the java.time engine behind parse/format, plus the java.time interop surface. Everything here is a companion member, so call sites need no import: m.toInstant and both Conversions resolve from Moment's implicit scope, Moment(instant) and Moment(ldt) are plain companion calls. Moment stays at millisecond precision, so sub-millisecond Instant precision truncates.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Moment

Members list

Value members

Concrete methods

def apply(instant: Instant): Moment
def apply(ldt: LocalDateTime): Moment
protected def formatIso(epochMilli: Long): String
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

Givens

Givens

given given_Conversion_Instant_Moment: Conversion[Instant, Moment]
given given_Conversion_Moment_Instant: Conversion[Moment, Instant]

Extensions

Extensions

extension (m: Moment)
def toInstant: Instant