object LunarDate extends Serializable
- Alphabetic
- By Inheritance
- LunarDate
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- implicit class LocalDateConvert extends AnyRef
- implicit class LocalDateTimeConvert extends AnyRef
- type LunarResult[A] = Either[LunarDateArgumentException, A]
- implicit class UtilDateConvert extends AnyRef
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
daysInMonth(year: Int, month: Int, isLeap: Boolean): Int
開放給外部使用,需要建立每個月的日選單
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fromLunar(lunarYear: Int, lunarMonth: Int, lunarDate: Int, isLeap: Boolean, hour: Int = 0): LunarResult[LocalDateTime]
Convert Lunar date to AD date.
Convert Lunar date to AD date.
- lunarYear
lunar year
- lunarMonth
lunar month
- lunarDate
lunar date
- isLeap
is the lunar month a leap month
- hour
the hour of date, default 0
- returns
java.time.LocalDateTimerepresentation of Lunar date in AD orLunarDateArgumentExceptionif parameter is not accepted.
- def fromLunar(lunarYear: Int, lunarMonth: Int, lunarDate: Int, isLeap: Boolean): LunarResult[LocalDate]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLunar(date: LocalDateTime): LunarResult[LunarDate]
Convert from AD date to Lunar date using
java.time.LocalDateTime.Convert from AD date to Lunar date using
java.time.LocalDateTime.- date
date to convert
- returns
lunar date representation of
dateorLunarDateArgumentExceptionif year is not supported
-
def
toLunar(date: LocalDate): LunarResult[LunarDate]
Convert from AD date to Lunar date using
java.time.LocalDatewith time at midnight.Convert from AD date to Lunar date using
java.time.LocalDatewith time at midnight.- date
date to convert
- returns
lunar date representation of
dateorLunarDateArgumentExceptionif year is not supported
-
def
toLunar(date: Date): LunarResult[LunarDate]
Convert from AD date to Lunar date using
java.util.Date.Convert from AD date to Lunar date using
java.util.Date.- date
date to convert
- returns
lunar date representation of
dateorLunarDateArgumentExceptionif year is not supported
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )