Synopsis
Transforms date values into numerical ones capturing the milliseconds since 01/01/1970 00:00:00 GMT.
Description
This operator changes a date attribute into a numerical one. It allows to specify exactly which entity should be extracted and to which unit or date it should relate. As an example, it is possible to extract seconds within a minute. Analogously, it is also possible to extract the day within a month. But it is also possible to extract the day within a week or within a year. For all time units, it is also possible to extract the number which has passed by since 1970-01-01 00:00.
Input
- example set input: expects: ExampleSetMetaData: #examples: = 0; #attributes: 0
, expects: ExampleSet
Output
- example set output:
- original:
Parameters
- attribute name: The attribute which should be parsed.
- time unit: The unit in which the time is measured.
- millisecond relative to: The unit the value is extracted relativ to.
- second relative to: The unit the value is extracted relativ to.
- minute relative to: The unit the value is extracted relativ to.
- hour relative to: The unit the value is extracted relativ to.
- day relative to: The unit the value is extracted relativ to.
- week relative to: The unit the value is extracted relativ to.
- month relative to: The unit the value is extracted relativ to.
- quarter relative to: The unit the value is extracted relativ to.
- half year relative to: The unit the value is extracted relativ to.
- year relative to: The unit the value is extracted relativ to.
- keep old attribute: Indicates if the original date attribute should be kept.