Packages

object DateToWord

Converts date representations into Persian verbal expressions.

Example:

DateToWord(PersianDate(1361, 3, 3))    // "سوم خرداد یک هزار و سیصد و شصت و یک"
DateToWord(GregorianDate(1992, 12, 3)) // "سوم دسامبر یک هزار و نه‌صد و نود و دو"
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DateToWord
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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

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

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. 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

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

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

  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  19. 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

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

  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped