Hey,
i have no idea if this is the right place to post this but i need help for a college project with kotlin because im relatively new into kotlin:
For my project i have to write my own Date class. Its NOT allowed to use external modules! The primary constructor should look like this:
Date(second, minute, hour, day, year)
The class also has properties like month, dayOfMonth, weekOfYear which must be derived from the values given in the constructor.
So whats the easiest way to do this without using external modules in kotlin?
submitted by /u/Eiberger
[link] [comments]