DateTimeCalculator

Performs arithmetic on date, time, datetime, and interval values. In Advanced Expression mode, composite expressions involving datetimes and intervals may be constructed.

See also: Date/Time Terminology, Date/Time Format, Date/Time Functions

The DateTimeCalculator performs arithmetic on five temporal types:

  1. Date
  2. Time
  3. Time with UTC offset
  4. Datetime
  5. Datetime with UTC offset

The input temporal strings must be in FME format.

If input strings are invalid but repairable, they will be auto repaired. For example, in a date string, month = 13 will cause the year to be incremented by 1, and month set to 01.

DateTimeCalculator also supports interval arithmetic, where the interval can be specified in one of two ways:

Invalid temporal and interval input will cause date time functions that consume them to return null, and cause the feature to be rejected.

Limitations:

Input Ports

Output Ports

Parameters

Editing Transformer Parameters

Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.

Transformer Categories

Calculated Values

Search FME Knowledge Center

Search for samples and information about this transformer on the FME Knowledge Center.