The ‘Time Stamp’ and ‘Time Difference’ Modules
The ‘Time Stamp’ Module is useful when working with timestamps. You can add the current date and time to your messages by leaving the ‘Source Property’ setting empty, but you can also use it to convert timestamps. Often timestamps from external systems are received as strings, which are not very useful if you want to use them in calculations. They may also be formatted in a way that is not accepted by your destinations. This can be solved with the ‘Time Stamp’ Module. Whatever the input format you can specify the format of the outgoing message, e.g. convert a timestamp string to a numeric value (epoch), either in seconds or milliseconds. Or you can convert to a string with another format by defining the format yourself. It’s also possible to add an offset to the timestamp, e.g. to convert between time zones.
When working with timestamps there is also the ‘Time Difference’ Module that gives you the difference between two timestamps as a real number in your preferred resolution (seconds, hours, days…).