Official | HULFT IoT EdgeStreaming Mapper Reference First Edition: July 1, 2021

Increases or decreases minute

Increases or decreases minute

Logic name

Increases or decreases minute

Function

This logic increases or decreases the minutes of the input date and time and returns the date and time value.

Data type

Location

Type

First input handler

Date

Second input handler

Numeric (integer)

Logic output

Date

Property

Category

Property

Description

Comment

Comment

It does not affect the conversion processing.

Function details

Calculation method

This logic adds the numerical value of the second input handler in minutes to the date and time of the first input handler. You can specify only an integer as a number.

First Input Handler (Date and Time)

Second Input Handler (Minutes)

Output Date and Time

2021-01-01T00:00:00.0000000+09:00

1

2021-01-01T00:01:00.0000000+09:00

2021-01-01T00:00:00.0000000+09:00

-1

2020-12-31T23:59:00.0000000+09:00

2021-01-01T00:00:00.0000000+09:00

61

2021-01-01T01:01:00.0000000+09:00

Notes

  • If a nonexistent date and time is input, or if such a calculation result is obtained, it is automatically corrected to an existing date and time. For example, 2021/04/30 12:61:00 becomes 2021/04/30 13:01:00.

  • If you enter a floating point in the second input handler, an error such as the following occurs:

    2021-02-12T17:13:06 A tuple was dropped from the topology

    EES0AGENT01711,[unsupported cast int from float]

    map[data:{} timestamp:\"2021-02-12T17:13:06.1596229+09:00\"]

Example of logic use

Mapping definition

Increases or decreases minute

Logic settings and processing result

This logic increases or decreases the date and time of the input data in minutes and then outputs it.

For the date type data to specify for the input data, use a value that is output from one of the following logics:

  • Current date/time (UTC)

  • Current date/time (OS time zone)

  • Date/Time formatting(Standard format)

  • Date/Time formatting(Custom)

Property settings

Property

Setting Value

None

Input data

Date type data that represents the following dates and times

2019-01-01T00:01:00.0000000+09:00,-2

2020-02-02T02:10:00.0000000+09:00,11

2021-03-03T03:25:00.0000000+09:00,40

Output data

2018-12-31T23:59:00.0000000+09:00

2020-02-02T02:21:00.0000000+09:00

2021-03-03T04:05:00.0000000+09:00

 

 

Official | HULFT IoT EdgeStreaming Mapper Reference First Edition: July 1, 2021