SimpleDate

com.bahmanm.persianutils.DateConverter.SimpleDate
See theSimpleDate companion object
case class SimpleDate(year: Int, month: Int, day: Int) extends ConvertibleDate

A simple date representation used in DateConverter. Retained for backward compatibility.

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 date to a java.time.LocalDate assuming Gregorian calendar.

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

Attributes

Definition Classes
override def toWords: String

Converts this date into Persian words assuming Persian calendar.

Converts this date into Persian words assuming Persian calendar.

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