object DateToWord
Converts date representations into Persian verbal expressions.
Example:
DateToWord(PersianDate(1361, 3, 3)) // "سوم خرداد یک هزار و سیصد و شصت و یک" DateToWord(GregorianDate(1992, 12, 3)) // "سوم دسامبر یک هزار و نهصد و نود و دو"
- Alphabetic
- By Inheritance
- DateToWord
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(date: GregorianDate): String
Converts a Gregorian date to Persian words.
Converts a Gregorian date to Persian words.
- date
Gregorian date as GregorianDate
- returns
Verbal Persian expression
- def apply(date: PersianDate): String
Converts a Persian date to Persian words.
Converts a Persian date to Persian words.
- date
Persian date as PersianDate
- returns
Verbal Persian expression
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def gregorian(year: Int, month: Int, day: Int): String
Converts a Gregorian date given year, month, and day components to Persian words.
Converts a Gregorian date given year, month, and day components to Persian words.
- year
Calendar year
- month
Calendar month (1-indexed, 1 to 12)
- day
Calendar day (1-indexed, 1 to 31)
- returns
Verbal Persian expression
- def gregorian(date: LocalDate): String
Converts a Gregorian java.time.LocalDate to Persian words.
Converts a Gregorian java.time.LocalDate to Persian words.
- date
Gregorian date as java.time.LocalDate
- returns
Verbal Persian expression
- def gregorian(date: ConvertibleDate): String
Converts a Gregorian date to Persian words.
Converts a Gregorian date to Persian words.
- date
Gregorian date as ConvertibleDate
- returns
Verbal Persian expression
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def persian(year: Int, month: Int, day: Int): String
Converts a Persian date given year, month, and day components to Persian words.
Converts a Persian date given year, month, and day components to Persian words.
- year
Calendar year
- month
Calendar month (1-indexed, 1 to 12)
- day
Calendar day (1-indexed, 1 to 31)
- returns
Verbal Persian expression
- def persian(date: ConvertibleDate): String
Converts a Persian date to Persian words.
Converts a Persian date to Persian words.
- date
Persian date as ConvertibleDate
- returns
Verbal Persian expression
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)