GregorianDate

com.bahmanm.persianutils.GregorianDate
See theGregorianDate companion object
final case class GregorianDate(year: Int, month: Int, day: Int) extends ConvertibleDate

Represents a date in the Gregorian calendar.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def asLocalDate: LocalDate

Converts this Gregorian date to a java.time.LocalDate.

Converts this Gregorian date to a java.time.LocalDate.

Attributes

Definition Classes
override def toWords: String

Converts this Gregorian date into Persian words.

Converts this Gregorian date into Persian words.

Attributes

Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Inherited from:
ConvertibleDate

Deprecated and Inherited methods

def asDate: Date

Converts this date to a legacy java.util.Date.

Converts this date to a legacy java.util.Date.

Attributes

Deprecated
[Since version 6.0.0] Use asLocalDate instead; will be removed in version 7.0.0

Use asLocalDate instead. Scheduled for removal in version 7.0.0.

Inherited from:
ConvertibleDate