RelativeTimeCalculator

From Fmepedia


by Dmitri Bagh

This transformer calculates a new date/time relative to the given date/time. Standard DateFormatter can use only current time. This transformer can use an arbitrary date formatted according to the same rules found in DateFormatter transformer.

The format is number unit. Acceptable units are year, fortnight, month, week, day, hour, minute (or min), and second (or sec). The unit can be specified as a singular or plural, as in 3 weeks. These modifiers may also be specified: tomorrow, yesterday, today, now, last, this, next, ago.

The transformer adds a new attribute _destDate.

For more details see DateFormatter transformer.

Attached Files
filesizedate
RelativeTimeCalculator.zip10.3 kB07/04/07
User Comments Add a new comment