• Teaser Home

    Clean Code Developer School

    Saubere Softwareentwicklung üben – regelmäßig, fokussiert, individuell, angeleitet

Mail Followup

Function Kata „Mail Followup“

Implement a function which maps special mail followup email addresses to date and time values. You may also take a look at the „Mail Followup“ architecture kata.

The function to be implemented should have the following signature:

Examples for email addresses:

  • 7days@followup.cc
    In 7 days from now on.
  • 12hours@followup.cc
    In 12 hours from now on.
  • aug15-9am@followup.cc
    At next august the 15. at 9 A.M.
  • 1week3days5hours@followup.cc
    In one week, three days and five hours from now on.

Feel free to add more functionality.


Here’s an example: if the function is called with the following values

then t has a value of