ConvertibleDate

com.bahmanm.persianutils.ConvertibleDate
sealed trait ConvertibleDate

Base trait for date representations that can be converted across calendar systems.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def asLocalDate: LocalDate

Converts this date to a java.time.LocalDate.

Converts this date to a java.time.LocalDate.

Attributes

def day: Int
def month: Int
def toWords: String

Converts this date into Persian words.

Converts this date into Persian words.

Attributes

def year: Int

Concrete methods

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
Any

Deprecated 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.