case class LunarDate(year: Int, month: Int, date: Int, hour: Int, lunarHour: Int, isLeap: Boolean) extends Product with Serializable
Constructor.
- year
year of Lunar date
- month
month of Lunar date
- date
date of Lunar date
- hour
hour of original DateTime
- lunarHour
lunar hour in terms of Stem(天) or so called 時辰, value from 0 ~ 12.
- isLeap
is the month a leap month (閏月)
- Alphabetic
- By Inheritance
- LunarDate
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
LunarDate(year: Int, month: Int, date: Int, hour: Int, lunarHour: Int, isLeap: Boolean)
- year
year of Lunar date
- month
month of Lunar date
- date
date of Lunar date
- hour
hour of original DateTime
- lunarHour
lunar hour in terms of Stem(天) or so called 時辰, value from 0 ~ 12.
- isLeap
is the month a leap month (閏月)
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
- val date: Int
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val hour: Int
-
def
hourStem(): Stem
Stem of the Lunar hour (時辰).
Stem of the Lunar hour (時辰).
- returns
hour stem
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val isLeap: Boolean
- val lunarHour: Int
- val month: Int
-
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
toDate(): LunarResult[Date]
Convert to
java.util.Datein AD.Convert to
java.util.Datein AD.- returns
equivalent date in Date
-
def
toLocalDate(): LunarResult[LocalDate]
Convert to
java.time.LocalDatein AD.Convert to
java.time.LocalDatein AD.- returns
equivalent date in LocalDate
-
def
toLocalDateTime(): LunarResult[LocalDateTime]
Convert to
java.time.LocalDatein AD.Convert to
java.time.LocalDatein AD.- returns
equivalent date in Date
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val year: Int
-
def
yearBranch(): Branch
Branch (地支) of th year.
Branch (地支) of th year.
- returns
branch of the year
-
def
yearBranchIndex(): Int
Branch (地支) of th year, in form of index starting from 0.
Branch (地支) of th year, in form of index starting from 0.
- returns
branch index of the year
-
def
yearStem(): Stem
Stem (天干) of the year.
Stem (天干) of the year.
- returns
stem of the year
-
def
yearStemIndex(): Int
Stem (天干) of the year, in form of index starting from 0.
Stem (天干) of the year, in form of index starting from 0.
- returns
stem index of the year