Class DateConstructor

    • Field Detail

      • output

        public TypedIOPort output
        The output for the constructed date.
      • millisecond

        public PortParameter millisecond
        The milliseconds.
      • microsecond

        public PortParameter microsecond
        The microseconds.
      • timeZoneOffset

        public PortParameter timeZoneOffset
        The time zone offset.
      • timeInMillis

        public PortParameter timeInMillis
        The time as a long value representing the milliseconds since January 1, 1970.
      • useTimeInMillis

        public Parameter useTimeInMillis
        Use the time in milliseconds. The default value is false, which means that the timeAsLongValue will be set according the year, month, day etc and adjusted according to the precision. If useTimeInMillis is true, then the value of timeAsLongValue will be the time in milliseconds.
      • precision

        public Parameter precision
        The precision of the date. The precision defaults to milliseconds.
    • Method Detail

      • fire

        public void fire()
                  throws IllegalActionException
        Construct a date token with all tokens present. If a token for the long value is present, use this token and time zone as well as precision. Otherwise use tokens on other inputs to create ports.
        Specified by:
        fire in interface Executable
        Overrides:
        fire in class AtomicActor<TypedIOPort>
        Throws:
        IllegalActionException - If thrown by the superclass, if there is no director, ifthere is a problem reading a parameter, or if there is a problem sending the date token.