Date

class Date(year: Int, month: Int, date: Int)

The numbers are as in real life. For example, Date(year = 1970, month = 1, date = 3) represents January 3, 1970.

Parameters

year

Corresponds to its ordinal number in a regular calendar.

month

Corresponds to its ordinal number in a regular calendar, i.e. starts with 1.

date

Corresponds to its ordinal number in a regular calendar, i.e. starts with 1.

Constructors

Link copied to clipboard
constructor(year: Int, month: Int, date: Int)

Functions

Link copied to clipboard
open override fun toString(): String