How many years are there between two dates

Inputs

  • Start date
  • End date

Outputs

  • Years

Neuron type

Checked - ready to generate algorithm

Patterns

Pattern Input Output
1.
Start date: 2016-01-02
End date: 2017-01-02
Years: 1
2.
Start date: 2016-01-03
End date: 2017-01-02
Years: 0
3.
Start date: 2016-01-01
End date: 2017-01-02
Years: 1
5.
Start date: 2010-01-02
End date: 2017-01-02
Years: 7

Applicable neurons

  • Plus (x + y)
  • Minus (x - y)
  • 0
  • 1
  • a > b
  • a < b
  • IF a=b THEN c ELSE d
  • IF (1) THEN a ELSE b
  • get year from date (yyyy-mm-dd)
  • get month, day (mm-dd) from date (yyyy-mm-dd)
  • Half (0.5)
  • Get after substring
  • Compound interest: annual compounding
  • begin of start tag
  • Declarative sentence
  • [a, b)
  • convert minutes and seconds into MM:SS
  • (x|y)
  • character m
  • sql AVG(A, B)

Algorithm

Algorithm doesn't exists


Rodokmen - poznejte své předky | TOPlist U.I., Umělá inteligence