Datetime

Date and time manipulation functions.

class forml.io.dsl.function.Year(value: Operable)[source]

Extract the year from given date/time instance.

Parameters:
value: Operable

Date/time feature to extract the year value from.

Raises:

dsl.GrammarError – If value is not a valid date/time.

Examples

>>> ETL = Student.select(function.Year(Student.birthday))