Here's a short description how to create a time dimension with Talend. This job generates integers and calculates dates from it. It will give you the following fields:
A conversion class used in the mappings.
public class Conversie { /** * DateFromDays: Return calendar object with days from 1970-01-01 * * @param number of days * @return the date from days from 1970-01-01 * * {talendTypes} Integer * * {Category} User Defined * * {param} integer(1) input: The number of days from 1970-01-01 * * {example} DateFromDays(1) # 1970-01-02 */ cal.set(1970, 0, 01,0,0,0); return cal.getTime(); } /** * Formats a Date into a date/time string. * * @param pattern the pattern to format. * @param date the time value to be formatted into a time string. * @return the formatted time as an integer. * * {talendTypes} String * * {Category} TalendDate * * {param} string("yyyy-MM-dd HH:mm:ss") pattern : the pattern to format * * {param} date(myDate) date : the time value to be formatted into a time string * * {example} formatDate("yyyy-MM-dd", new Date()) # */ StringBuilder sb = new StringBuilder( df.format( date ) ); } }