Object/Trait

io.scalajs.npm.moment

Moment

Related Docs: trait Moment | package moment

Permalink

object Moment extends Object with Moment

Moment Singleton

Annotations
@native() @JSImport( "moment" , JSImport.Namespace )
Linear Supertypes
Moment, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Moment
  2. Moment
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def add(delta: Double, s: String): Moment.this.type

    Permalink
    Definition Classes
    Moment
  5. def apply(date: |[Date, String], formatString: String): Moment.this.type

    Permalink
    Definition Classes
    Moment
  6. def apply(date: |[Date, String] = js.native): Moment.this.type

    Permalink
    Definition Classes
    Moment
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def calendar(): String

    Permalink
    Definition Classes
    Moment
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def date(value: Int): Moment.this.type

    Permalink
    Definition Classes
    Moment
  11. def date(): Int

    Permalink
    Definition Classes
    Moment
  12. def day(value: Int): Moment.this.type

    Permalink
    Definition Classes
    Moment
  13. def day(): Int

    Permalink
    Definition Classes
    Moment
  14. def endOf(s: String): Moment.this.type

    Permalink
    Definition Classes
    Moment
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def format(formatString: String = js.native): String

    Permalink
    Definition Classes
    Moment
  19. def fromNow(): String

    Permalink
    Definition Classes
    Moment
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. def hour(value: Int): Moment.this.type

    Permalink
    Definition Classes
    Moment
  24. def hour(): Int

    Permalink
    Definition Classes
    Moment
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  27. def locale(): String

    Permalink
    Definition Classes
    Moment
  28. def millisecond(value: Int): Moment.this.type

    Permalink
    Definition Classes
    Moment
  29. def millisecond(): Int

    Permalink
    Definition Classes
    Moment
  30. def minute(value: Int): Moment.this.type

    Permalink
    Definition Classes
    Moment
  31. def minute(): Int

    Permalink
    Definition Classes
    Moment
  32. def month(value: Int): Moment.this.type

    Permalink
    Definition Classes
    Moment
  33. def month(): Int

    Permalink
    Definition Classes
    Moment
  34. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  35. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  38. def second(value: Int): Moment.this.type

    Permalink
    Definition Classes
    Moment
  39. def second(): Int

    Permalink
    Definition Classes
    Moment
  40. def startOf(s: String): Moment.this.type

    Permalink
    Definition Classes
    Moment
  41. def subtract(delta: Double, s: String): Moment.this.type

    Permalink
    Definition Classes
    Moment
  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  43. def toArray(): Array[Int]

    Permalink

    This returns an array that mirrors the parameters from new Date().

    This returns an array that mirrors the parameters from new Date().

    Definition Classes
    Moment
    Example:
    1. moment().toArray(); // [2013, 1, 4, 14, 40, 16, 154];

  44. def toDate(): Date

    Permalink

    To get the native Date object that Moment.js wraps, use moment#toDate.

    To get the native Date object that Moment.js wraps, use moment#toDate.

    Definition Classes
    Moment
    See also

    http://momentjs.com/docs/#/displaying/as-javascript-date/

  45. def toISOString(): String

    Permalink

    Formats a string to the ISO8601 standard.

    Formats a string to the ISO8601 standard.

    Definition Classes
    Moment
  46. def toJSON(): Any

    Permalink

    When serializing an object to JSON, if there is a Moment object, it will be represented as an ISO8601 string, adjusted to UTC.

    When serializing an object to JSON, if there is a Moment object, it will be represented as an ISO8601 string, adjusted to UTC.

    Definition Classes
    Moment
  47. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  48. def toObject(): Any

    Permalink

    This returns an object containing year, month, day-of-month, hour, minute, seconds, milliseconds.

    This returns an object containing year, month, day-of-month, hour, minute, seconds, milliseconds.

    Definition Classes
    Moment
  49. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  50. def utcOffset(value: Int): Moment.this.type

    Permalink
    Definition Classes
    Moment
  51. def utcOffset(): Int

    Permalink
    Definition Classes
    Moment
  52. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  53. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. def weekday(value: Int): Moment.this.type

    Permalink
    Definition Classes
    Moment
  57. def weekday(): Int

    Permalink
    Definition Classes
    Moment
  58. def year(value: Int): Moment.this.type

    Permalink
    Definition Classes
    Moment
  59. def year(): Int

    Permalink
    Definition Classes
    Moment

Deprecated Value Members

  1. def native(): Date

    Permalink

    moment#native has been replaced by moment#toDate and has been deprecated as of 1.6.0

    moment#native has been replaced by moment#toDate and has been deprecated as of 1.6.0

    Definition Classes
    Moment
    Annotations
    @deprecated
    Deprecated

    (Since version 1.6.0) Use toDate() instead

  2. def zone(value: Int): Moment.this.type

    Permalink
    Definition Classes
    Moment
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) use moment().utcOffset instead.

  3. def zone(): Int

    Permalink
    Definition Classes
    Moment
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0) use moment().utcOffset instead.

Inherited from Moment

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped