For now let's assume the Date type is just a list of integers.
These built-ins convert a list into the Date type:
Convert [year,month,day,hours,minutes,seconds,milliseconds] into the Date type. The trailing numbers are optional, so [year,month] will yield [year, month, 0, 0, 0, 0, 0]. You can implement the current time built-in, with everything wrapped into a list.
These perform conditions upon Date instances:
Get the day-of-the-week
These built-ins take a number as an input:
Is this input a leap year? (The only one I could think of)
For now let's assume the Date type is just a list of integers.
These built-ins convert a list into the Date type:
[year,month,day,hours,minutes,seconds,milliseconds]
into the Date type. The trailing numbers are optional, so[year,month]
will yield[year, month, 0, 0, 0, 0, 0]
. You can implement the current time built-in, with everything wrapped into a list.These perform conditions upon Date instances:
These built-ins take a number as an input: