Skip to main content
info
This documentation is for version v2.5 of the product.
For the latest version(v2.7) documentation click here
Version: v2.5 print this page

DateTimeFieldExtract

It creates a new DataFrame by extracting Date and Time fields.

Input

It takes in a DataFrame as Input

Output

Node to extract year/month/dayofmonth/hour/minute/seconad values from TimeStamp

Type

transform

Fields

NameTitleDescription
inputColColumnThe input column name
extractYearExtract YearExtract Year
extractMonthExtract MonthExtract Month
extractDayOfMonthExtract Day of MonthExtract Day of Month
extractHourExtract HourExtract Hour
extractMinuteExtract MinuteExtract Minute
extractSecondExtract SecondExtract Second
extractWeekOfYearExtract WeekOfYearExtract WeekOfYear

Details

Extracts year, month, day of month, hour, minute, second and week of year in different columns.

Examples

Input

transactionIdcardNumbertx_timestampamountmerchnatId
StringTypeStringTypeTimestampTypeDoubleTypeStringType
215667691-700032015-12-25 01:17:0614952.5943199-016
751006667-000122015-12-29 01:17:0616603.4463621-354
52339970-800012015-12-22 01:17:0629175.3564205-126
884800094-000032015-12-15 01:17:0630190.3150730-7993

Parameters

NameValue
Columntx_timestamp
Extract Yeartrue
Extract Monthtrue
Extract Day of Monthtrue
Extract Hourtrue
Extract Minutetrue
Extract Secondtrue
Extract WeekOfYeartrue

Output

transactionIdcardNumbertx_timestampamountmerchnatIdtx_timestamp_yeartx_timestamp_monthtx_timestamp_dayofmonthtx_timestamp_hourtx_timestamp_minutetx_timestamp_secondtx_timestamp_weekofyear
215667691-700032015-12-25 01:17:0614952.5943199-0162015122501170652
751006667-000122015-12-29 01:17:0616603.4463621-3542015122901170653
52339970-800012015-12-22 01:17:0629175.3564205-1262015122201170652
884800094-000032015-12-15 01:17:0630190.3150730-79932015121501170651