PersianDate

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

Represents a date in the Persian (Solar Hijri / Jalali) 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 Persian date to its Gregorian java.time.LocalDate equivalent.

Converts this Persian date to its Gregorian java.time.LocalDate equivalent.

Attributes

Definition Classes
override def toWords: String

Converts this Persian date into Persian words.

Converts this Persian 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