Class JSTemporalDurationObject

All Implemented Interfaces:
com.oracle.truffle.api.interop.TruffleObject

public final class JSTemporalDurationObject extends JSNonProxyObject
  • Constructor Details

    • JSTemporalDurationObject

      public JSTemporalDurationObject(com.oracle.truffle.api.object.Shape shape, JSDynamicObject proto, double years, double months, double weeks, double days, double hours, double minutes, double seconds, double milliseconds, double microseconds, double nanoseconds)
  • Method Details

    • getYears

      public double getYears()
    • getMonths

      public double getMonths()
    • getWeeks

      public double getWeeks()
    • getDays

      public double getDays()
    • getHours

      public double getHours()
    • getMinutes

      public double getMinutes()
    • getSeconds

      public double getSeconds()
    • getMilliseconds

      public double getMilliseconds()
    • getMicroseconds

      public double getMicroseconds()
    • getNanoseconds

      public double getNanoseconds()
    • getClassName

      public com.oracle.truffle.api.strings.TruffleString getClassName()
      Description copied from class: JSDynamicObject
      The [[Class]] internal property. For ES5, this is the second part of what Object.prototype.toString.call(myObj) returns, e.g. "[object Array]".
      Overrides:
      getClassName in class JSNonProxyObject