Trait/Object

io.scalajs.npm.moment

Moment

Related Docs: object Moment | package moment

Permalink

trait Moment extends Object

Moment.js - Parse, validate, manipulate, and display dates in JavaScript.

Annotations
@RawJSType() @native()
Version

2.17.1

See also

http://momentjs.com/

Linear Supertypes
Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Moment
  2. Object
  3. Any
  4. AnyRef
  5. 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
  5. def apply(date: |[Date, String], formatString: String): Moment.this.type

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

    Permalink
  7. final def asInstanceOf[T0]: T0

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

    Permalink
  9. def clone(): AnyRef

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

    Permalink
  11. def date(): Int

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

    Permalink
  13. def day(): Int

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

    Permalink
  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
  19. def fromNow(): String

    Permalink
  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
  24. def hour(): Int

    Permalink
  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
  28. def millisecond(value: Int): Moment.this.type

    Permalink
  29. def millisecond(): Int

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

    Permalink
  31. def minute(): Int

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

    Permalink
  33. def month(): Int

    Permalink
  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
  39. def second(): Int

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

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

    Permalink
  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().

    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.

    See also

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

  45. def toISOString(): String

    Permalink

    Formats a string to the ISO8601 standard.

  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.

  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.

  49. def toString(): String

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

    Permalink
  51. def utcOffset(): Int

    Permalink
  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
  57. def weekday(): Int

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

    Permalink
  59. def year(): Int

    Permalink

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

    Annotations
    @deprecated
    Deprecated

    (Since version 1.6.0) Use toDate() instead

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

    Permalink
    Annotations
    @deprecated
    Deprecated

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

  3. def zone(): Int

    Permalink
    Annotations
    @deprecated
    Deprecated

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

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped